remove signal handler which is unsupported on windows 11
This commit is contained in:
4
web.py
4
web.py
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user