mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 19:24:13 +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():
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user