Support for cooperative signal handling of uvicorn v0.29.0

This commit is contained in:
grossmj
2024-04-03 15:58:10 +07:00
parent fd60bda2c2
commit 9b66d939d2
2 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ import gns3server.utils.get_resource
import os
import sys
import asyncio
def daemonize():
@ -70,7 +71,10 @@ def main():
daemonize()
from gns3server.server import Server
Server().run()
try:
asyncio.run(Server().run())
except KeyboardInterrupt:
pass
if __name__ == "__main__":