mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: remove world.started check, this shouldn't be needed anymore
This commit is contained in:
parent
767ff15200
commit
1ee93d2cc4
@ -48,13 +48,9 @@ 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
|
t = threading.Thread(target=_initialize_all, daemon=True,
|
||||||
# relay servers from being spawned too early (before server authentication),
|
name='relay initialize_all thread from network %r' % irc.name)
|
||||||
# which would break connections.
|
t.start()
|
||||||
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()
|
|
||||||
|
|
||||||
def main(irc=None):
|
def main(irc=None):
|
||||||
"""Main function, called during plugin loading at start."""
|
"""Main function, called during plugin loading at start."""
|
||||||
|
Loading…
Reference in New Issue
Block a user