mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Support for cooperative signal handling of uvicorn v0.29.0
This commit is contained in:
2 files changed
+7
-4
No files matched your search
+5
-1
@@ -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__":
|
||||
|
||||
Reference in new issue
Block a user