From 57f2d1b34fc2800d733bddcf39ab5589d5abab01 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 4 Aug 2020 23:01:41 +0100 Subject: [PATCH] Trying to get rid of runtime error --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index fdeef730..f70a3cd1 100644 --- a/main.py +++ b/main.py @@ -170,6 +170,8 @@ async def restart(ctx): colour=enso_embedmod_colours) await ctx.send(embed=embed) + client.db.terminate() + await client.db.wait_closed() await client.logout()