mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
control: suppress NotImplementedError when disconnecting networks on shutdown
This commit is contained in:
parent
2c028e2762
commit
0ffbaa8e5e
@ -71,7 +71,10 @@ def shutdown(irc=None):
|
|||||||
|
|
||||||
for ircobj in world.networkobjects.copy().values():
|
for ircobj in world.networkobjects.copy().values():
|
||||||
# Disconnect all our networks.
|
# Disconnect all our networks.
|
||||||
|
try:
|
||||||
remove_network(ircobj)
|
remove_network(ircobj)
|
||||||
|
except NotImplementedError:
|
||||||
|
continue
|
||||||
|
|
||||||
log.info("Waiting for remaining threads to stop; this may take a few seconds. If PyLink freezes "
|
log.info("Waiting for remaining threads to stop; this may take a few seconds. If PyLink freezes "
|
||||||
"at this stage, press Ctrl-C to force a shutdown.")
|
"at this stage, press Ctrl-C to force a shutdown.")
|
||||||
|
Loading…
Reference in New Issue
Block a user