3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +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,10 +48,6 @@ def initialize_all(irc):
if network == irc.name: if network == irc.name:
initialize_channel(irc, channel) 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, t = threading.Thread(target=_initialize_all, daemon=True,
name='relay initialize_all thread from network %r' % irc.name) name='relay initialize_all thread from network %r' % irc.name)
t.start() t.start()