We need to wait for _check to finish so read/writes can be triggered correctly

This commit is contained in:
jesopo 2019-06-07 11:05:55 +01:00
parent 09fbbae5e3
commit 38a41a6404

View file

@ -302,8 +302,8 @@ class Bot(object):
server.disconnect()
continue
self._event_queue.put(self._post_read_factory(server,
lines))
self.trigger(self._post_read_factory(server, lines),
False)
elif event & select.EPOLLHUP:
self.log.warn("Recieved EPOLLHUP for %s", [str(server)])
server.disconnect()