mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-07 23:27:27 +02:00
control: when rehashing, reconnect networks without autoconnect that failed to connect the first time
This commit is contained in:
parent
847a98755f
commit
4bd621f47e
@ -64,8 +64,8 @@ def _rehash():
|
|||||||
# TODO: update file loggers here too.
|
# TODO: update file loggers here too.
|
||||||
|
|
||||||
for network, sdata in new_conf['servers'].items():
|
for network, sdata in new_conf['servers'].items():
|
||||||
# New server was added. Connect them if not already connected.
|
# Connect any new networks or disconnected networks if they aren't already.
|
||||||
if network not in world.networkobjects:
|
if (network not in world.networkobjects) or (not world.networkobjects[network].connection_thread.is_alive()):
|
||||||
proto = utils.getProtocolModule(sdata['protocol'])
|
proto = utils.getProtocolModule(sdata['protocol'])
|
||||||
world.networkobjects[network] = classes.Irc(network, proto, new_conf)
|
world.networkobjects[network] = classes.Irc(network, proto, new_conf)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user