aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.")