From a60e6e7f22d8fe2838f6f215bcbfc6293263819c Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Sep 2017 14:09:28 -0700 Subject: [PATCH] relay: add missing comment to last commit --- plugins/relay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/relay.py b/plugins/relay.py index 98b0074..9c9c2b5 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -467,6 +467,7 @@ def initialize_channel(irc, channel): log.debug('(%s) relay.initialize_channel: relay pair found to be %s', irc.name, relay) queued_users = [] 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(): log.debug('(%s) relay.initialize_channel: skipping init of %s since another one is in progress', irc.name, relay) return