mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
selectdriver: stop delivering events when _aborted is set
This commit is contained in:
parent
8100a4cea6
commit
ab70d7c8fb
@ -19,7 +19,7 @@ def _process_conns():
|
||||
while not world.shutting_down.is_set():
|
||||
for socketkey, mask in selector.select(timeout=SELECT_TIMEOUT):
|
||||
irc = socketkey.data
|
||||
if mask & selectors.EVENT_READ:
|
||||
if mask & selectors.EVENT_READ and not irc._aborted.is_set():
|
||||
irc._run_irc()
|
||||
|
||||
def register(irc):
|
||||
|
Loading…
Reference in New Issue
Block a user