Skip to content

Commit ee85d14

Browse files
committed
fix
1 parent a704d22 commit ee85d14

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/opengeodeweb_viewer/rpc/utils_protocols.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Standard library imports
22
import os
3-
import asyncio
43

54
# Third party imports
6-
from wslink import register as exportRpc, server # type: ignore
5+
from wslink import register as exportRpc # type: ignore
76

87
# Local application imports
98
from opengeodeweb_microservice.schemas import get_schemas_dict
@@ -20,7 +19,7 @@ def __init__(self) -> None:
2019
super().__init__()
2120

2221
@exportRpc(utils_prefix + utils_schemas_dict["kill"]["rpc"])
23-
async def kill(self) -> None:
22+
def kill(self) -> None:
2423
print("Manual viewer kill, shutting down...", flush=True)
25-
await server.stop_webserver()
24+
self.publish("kill", "Viewer killed")
2625
os._exit(0)

0 commit comments

Comments
 (0)