mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-11 20:49:33 +01:00
relay: speed up shutdowns by not manually splitting off every relay server
The connection will soon be gone anyways, so this is fairly pointless.
This commit is contained in:
parent
c978e1c52f
commit
9d21a5269f
@ -73,6 +73,10 @@ def die(irc=None):
|
||||
"""Deinitialize PyLink Relay by quitting all relay clients and saving the
|
||||
relay DB."""
|
||||
|
||||
if not world.shutting_down.is_set():
|
||||
# Speed up shutdowns significantly by not manually splitting off every relay server -
|
||||
# the connection will soon be gone anyways.
|
||||
|
||||
# For every connected network:
|
||||
for ircobj in world.networkobjects.values():
|
||||
# 1) SQUIT every relay subserver.
|
||||
|
Loading…
Reference in New Issue
Block a user