channels: make sure we release the connection

This commit is contained in:
Luna Mendes 2018-10-27 20:44:59 -03:00
parent ba794de47a
commit 72465abdcb
1 changed files with 2 additions and 0 deletions

View File

@ -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)