3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

control: suppress NotImplementedError when disconnecting networks on shutdown

This commit is contained in:
James Lu 2019-03-28 20:14:28 -07:00
parent 2c028e2762
commit 0ffbaa8e5e

View File

@ -71,7 +71,10 @@ def shutdown(irc=None):
for ircobj in world.networkobjects.copy().values():
# Disconnect all our networks.
remove_network(ircobj)
try:
remove_network(ircobj)
except NotImplementedError:
continue
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.")