aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-24 18:46:25 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:38 -0700
commit2a8e4df7833f876864f4548fe555348a23371c10 (patch)
treed3b6910c37870a2e95b31babfb4ce15e56b44f2b
parentHelpChannels: ignore messages sent by bots (diff)
HelpChannels: fix acquisition of the on_message lock
* Use async_with * Don't call acquire()
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index ce71d285a..c5c542b3e 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -351,7 +351,7 @@ class HelpChannels(Scheduler, commands.Cog):
await self.ready.wait()
log.trace("Acquiring lock to prevent a channel from being processed twice...")
- with self.on_message_lock.acquire():
+ async with self.on_message_lock:
log.trace("on_message lock acquired.")
log.trace("Checking if the message was sent in an available channel.")