Merge pull request #146 from ZetGoHack/dev-test

[+] fix: SIGINT now says 'bye!' only once
Who? 2025-06-09 21:43:20 +07:00 committed by GitHub
commit 032e2b5ad2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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