mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +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():
|
||||
# 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.")
|
||||
|
Loading…
Reference in New Issue
Block a user