Asyncore UDP fix
- when there was an error writing to a udp socket, it wasn't handled correctly
This commit is contained in:
parent
333170b172
commit
a49b3b5f84
|
@ -151,6 +151,7 @@ class UDPSocket(BMProto):
|
|||
retval = self.socket.sendto(self.write_buf, ('<broadcast>', UDPSocket.port))
|
||||
except socket.error as e:
|
||||
logger.error("socket error on sendato: %s", str(e))
|
||||
retval = 0
|
||||
self.slice_write_buf(retval)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user