From c18b5447322971343427900bfa22feb980be4fae Mon Sep 17 00:00:00 2001 From: navjot Date: Fri, 11 Sep 2020 16:42:58 +0530 Subject: [PATCH] fixed socket error on sendato #1583 --- src/network/udp.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/network/udp.py b/src/network/udp.py index d5f1cccd..ccc7ade8 100644 --- a/src/network/udp.py +++ b/src/network/udp.py @@ -145,8 +145,5 @@ class UDPSocket(BMProto): # pylint: disable=too-many-instance-attributes self.write_buf, ('', self.port)) except socket.error as e: logger.error("socket error on sendto: %s", e) - if e.errno == 101: - self.announcing = False - self.socket.close() - retval = 0 + retval = len(self.write_buf) self.slice_write_buf(retval)