Skip to content

Commit 5570c2e

Browse files
committed
fix #151
1 parent 8a93a67 commit 5570c2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyprland/command.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import itertools
66
import json
77
import os
8+
import signal
89
import sys
910
import tomllib
1011
from collections.abc import Callable
@@ -77,6 +78,7 @@ def __init__(self) -> None:
7778
self.log = get_logger()
7879
self.queues: dict[str, asyncio.Queue] = {}
7980
self._set_instance(self)
81+
signal.signal(signal.SIGTERM, lambda *_: sys.exit(0))
8082

8183
async def initialize(self) -> None:
8284
"""Initialize the main structures."""

pyprland/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package version."""
22

3-
VERSION = "2.4.3-5"
3+
VERSION = "2.4.3-6"

0 commit comments

Comments
 (0)