From 72465abdcb3b0b203f32214a0eb5f0751ac0c4a8 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Sat, 27 Oct 2018 20:44:59 -0300 Subject: [PATCH] channels: make sure we release the connection --- litecord/blueprints/guild/channels.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litecord/blueprints/guild/channels.py b/litecord/blueprints/guild/channels.py index 412ec86..21d89ec 100644 --- a/litecord/blueprints/guild/channels.py +++ b/litecord/blueprints/guild/channels.py @@ -135,6 +135,8 @@ async def _do_single_swap(guild_id: int, pair: tuple): (new_pos_1, channel_1, guild_id), (new_pos_2, channel_2, guild_id)]) + await app.db.release(conn) + await _chan_update_dispatch(guild_id, channel_1) await _chan_update_dispatch(guild_id, channel_2)