fixed socket error on sendato #1583

This commit is contained in:
navjot 2020-09-11 16:42:58 +05:30
parent ec922adb36
commit c18b544732
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -145,8 +145,5 @@ class UDPSocket(BMProto): # pylint: disable=too-many-instance-attributes
self.write_buf, ('<broadcast>', 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)