3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 11:14:07 +01:00

selectdriver: stop delivering events when _aborted is set

This commit is contained in:
James Lu 2018-03-17 15:27:35 -07:00
parent 8100a4cea6
commit ab70d7c8fb

View File

@ -19,7 +19,7 @@ def _process_conns():
while not world.shutting_down.is_set(): while not world.shutting_down.is_set():
for socketkey, mask in selector.select(timeout=SELECT_TIMEOUT): for socketkey, mask in selector.select(timeout=SELECT_TIMEOUT):
irc = socketkey.data irc = socketkey.data
if mask & selectors.EVENT_READ: if mask & selectors.EVENT_READ and not irc._aborted.is_set():
irc._run_irc() irc._run_irc()
def register(irc): def register(irc):