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 a704d22 commit ee85d14Copy full SHA for ee85d14
src/opengeodeweb_viewer/rpc/utils_protocols.py
@@ -1,9 +1,8 @@
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
+from wslink import register as exportRpc # type: ignore
7
8
# Local application imports
9
from opengeodeweb_microservice.schemas import get_schemas_dict
@@ -20,7 +19,7 @@ def __init__(self) -> None:
20
19
super().__init__()
21
22
@exportRpc(utils_prefix + utils_schemas_dict["kill"]["rpc"])
23
- async def kill(self) -> None:
+ def kill(self) -> None:
24
print("Manual viewer kill, shutting down...", flush=True)
25
- await server.stop_webserver()
+ self.publish("kill", "Viewer killed")
26
os._exit(0)
0 commit comments