Fix: app.py cannot be closed with Ctrl+C

This commit is contained in:
tsukumi
2024-03-08 22:27:21 +00:00
parent b98fecb46d
commit 717ba7925f

View File

@@ -106,7 +106,6 @@ def initialize(port: int = WORKER_PORT) -> None:
terminate()
try:
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
except ValueError:
# signal only works in main thread