remove signal handler which is unsupported on windows 11

This commit is contained in:
liamcottle
2024-05-16 22:15:52 +12:00
parent d91080e558
commit 833303d4c7

4
web.py
View File

@@ -3,7 +3,6 @@
import argparse import argparse
import json import json
import os import os
import signal
from datetime import datetime, timezone from datetime import datetime, timezone
from typing import Callable, List from typing import Callable, List
@@ -246,9 +245,6 @@ class ReticulumWebChat:
"message": "ok", "message": "ok",
}) })
asyncio.get_event_loop().add_signal_handler(signal.SIGINT, lambda: exit(-1))
asyncio.get_event_loop().add_signal_handler(signal.SIGTERM, lambda: exit(-1))
# create and run web app # create and run web app
app = web.Application() app = web.Application()
app.add_routes(routes) app.add_routes(routes)