From 0ba6f2154ac61e721df1721545a85af53c4f6b91 Mon Sep 17 00:00:00 2001 From: "ZetGo | Aleksej K." Date: Mon, 9 Jun 2025 16:01:20 +0300 Subject: [PATCH] [+] SIGINT now says 'bye!' only once --- heroku/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heroku/main.py b/heroku/main.py index 63b5488..5808d1f 100644 --- a/heroku/main.py +++ b/heroku/main.py @@ -988,7 +988,6 @@ class Heroku: for task in asyncio.all_tasks(): if task is not asyncio.current_task(): task.cancel() - logging.info("Bye!") self.loop.stop() def main(self): @@ -1002,6 +1001,7 @@ class Heroku: except: pass finally: + logging.info("Bye!") self.loop.run_until_complete(self._shutdown_handler())