We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 123646f commit ed3b596Copy full SHA for ed3b596
1 file changed
irc_bot.py
@@ -156,6 +156,8 @@ def write_starting_date():
156
157
158
def _handle_signal(sig, loop):
159
+ for s in (signal.SIGTERM, signal.SIGINT):
160
+ loop.remove_signal_handler(s)
161
_shutdown_logger.info("Received %s, shutting down...", sig.name)
162
for task in asyncio.all_tasks(loop):
163
if task is not asyncio.current_task():
0 commit comments