diff --git a/src/iSponsorBlockTV/main.py b/src/iSponsorBlockTV/main.py index 09a8a66..a199f98 100644 --- a/src/iSponsorBlockTV/main.py +++ b/src/iSponsorBlockTV/main.py @@ -145,9 +145,11 @@ async def finish(devices, web_session, tcp_connector): await web_session.close() await tcp_connector.close() + def handle_signal(signum, frame): raise KeyboardInterrupt() + def main(config, debug): loop = asyncio.get_event_loop_policy().get_event_loop() tasks = [] # Save the tasks so the interpreter doesn't garbage collect them