Skip to content
Snippets Groups Projects
Commit 9a2cfac6 authored by Christoph Stahl's avatar Christoph Stahl
Browse files

Added initial windows support

parent bbbf54c9
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ be one of:
"""
from __future__ import annotations
import os
import asyncio
import datetime
from logging import LogRecord
......@@ -443,6 +444,8 @@ async def start_client(config: dict[str, Any]) -> None:
await sio.connect(state.config["server"])
# this is not supported under windows
if os.name != "nt":
asyncio.get_event_loop().add_signal_handler(signal.SIGINT, signal_handler)
asyncio.get_event_loop().add_signal_handler(signal.SIGTERM, signal_handler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment