3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 11:14:07 +01:00

relay: add missing comment to last commit

This commit is contained in:
James Lu 2017-09-23 14:09:28 -07:00
parent b667bed1e6
commit a60e6e7f22

View File

@ -467,6 +467,7 @@ def initialize_channel(irc, channel):
log.debug('(%s) relay.initialize_channel: relay pair found to be %s', irc.name, relay) log.debug('(%s) relay.initialize_channel: relay pair found to be %s', irc.name, relay)
queued_users = [] queued_users = []
if relay: if relay:
# Only allow one thread to initialize channels at a time.
if relay in channels_init_in_progress and channels_init_in_progress[relay].is_set(): if relay in channels_init_in_progress and channels_init_in_progress[relay].is_set():
log.debug('(%s) relay.initialize_channel: skipping init of %s since another one is in progress', irc.name, relay) log.debug('(%s) relay.initialize_channel: skipping init of %s since another one is in progress', irc.name, relay)
return return