We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbd853 commit a704d22Copy full SHA for a704d22
src/opengeodeweb_viewer/rpc/utils_protocols.py
@@ -1,5 +1,6 @@
1
# Standard library imports
2
import os
3
+import asyncio
4
5
# Third party imports
6
from wslink import register as exportRpc, server # type: ignore
@@ -19,7 +20,7 @@ def __init__(self) -> None:
19
20
super().__init__()
21
22
@exportRpc(utils_prefix + utils_schemas_dict["kill"]["rpc"])
- def kill(self) -> None:
23
+ async def kill(self) -> None:
24
print("Manual viewer kill, shutting down...", flush=True)
- server.stop_webserver()
25
+ await server.stop_webserver()
26
os._exit(0)
0 commit comments