3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

relay: remove world.started check, this shouldn't be needed anymore

This commit is contained in:
James Lu 2018-10-08 14:44:37 -07:00
parent 767ff15200
commit 1ee93d2cc4

View File

@ -48,13 +48,9 @@ def initialize_all(irc):
if network == irc.name:
initialize_channel(irc, channel)
# Wait for all IRC objects to be created first. This prevents
# relay servers from being spawned too early (before server authentication),
# which would break connections.
if world.started.wait(TCONDITION_TIMEOUT):
t = threading.Thread(target=_initialize_all, daemon=True,
name='relay initialize_all thread from network %r' % irc.name)
t.start()
t = threading.Thread(target=_initialize_all, daemon=True,
name='relay initialize_all thread from network %r' % irc.name)
t.start()
def main(irc=None):
"""Main function, called during plugin loading at start."""