fixed socket error on sendato #1583
This commit is contained in:
parent
ec922adb36
commit
c18b544732
|
@ -145,8 +145,5 @@ class UDPSocket(BMProto): # pylint: disable=too-many-instance-attributes
|
||||||
self.write_buf, ('<broadcast>', self.port))
|
self.write_buf, ('<broadcast>', self.port))
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
logger.error("socket error on sendto: %s", e)
|
logger.error("socket error on sendto: %s", e)
|
||||||
if e.errno == 101:
|
retval = len(self.write_buf)
|
||||||
self.announcing = False
|
|
||||||
self.socket.close()
|
|
||||||
retval = 0
|
|
||||||
self.slice_write_buf(retval)
|
self.slice_write_buf(retval)
|
||||||
|
|
Reference in New Issue
Block a user