Skip to content

Commit a704d22

Browse files
committed
asyncio
1 parent 1bbd853 commit a704d22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/opengeodeweb_viewer/rpc/utils_protocols.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Standard library imports
22
import os
3+
import asyncio
34

45
# Third party imports
56
from wslink import register as exportRpc, server # type: ignore
@@ -19,7 +20,7 @@ def __init__(self) -> None:
1920
super().__init__()
2021

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

0 commit comments

Comments
 (0)