mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
selectdriver: don't try to deregister dead sockets
This commit is contained in:
parent
ab70d7c8fb
commit
fb6c3bf6d5
@ -33,8 +33,11 @@ def unregister(irc):
|
|||||||
"""
|
"""
|
||||||
Removes a network from the global selectors instance.
|
Removes a network from the global selectors instance.
|
||||||
"""
|
"""
|
||||||
log.debug('selectdriver: de-registering %s for network %s', irc._socket, irc.name)
|
if irc._socket.fileno() != -1:
|
||||||
selector.unregister(irc._socket)
|
log.debug('selectdriver: de-registering %s for network %s', irc._socket, irc.name)
|
||||||
|
selector.unregister(irc._socket)
|
||||||
|
else:
|
||||||
|
log.debug('selectdriver: skipping de-registering %s for network %s', irc._socket, irc.name)
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user