From a49b3b5f848783f6df9a4483a41b9e50c50a89ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Fri, 6 Oct 2017 18:26:06 +0200 Subject: [PATCH] Asyncore UDP fix - when there was an error writing to a udp socket, it wasn't handled correctly --- src/network/udp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/udp.py b/src/network/udp.py index 27cf0abb..bd867125 100644 --- a/src/network/udp.py +++ b/src/network/udp.py @@ -151,6 +151,7 @@ class UDPSocket(BMProto): retval = self.socket.sendto(self.write_buf, ('', UDPSocket.port)) except socket.error as e: logger.error("socket error on sendato: %s", str(e)) + retval = 0 self.slice_write_buf(retval)