1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Cosmetic changes

This commit is contained in:
Unrud 2020-02-19 09:50:00 +01:00
parent cc22927353
commit 3b99d64935
2 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ def run():
# SIGTERM and SIGINT (aka KeyboardInterrupt) shutdown the server
def shutdown(signal_number, stack_frame):
shutdown_socket.sendall(b" ")
shutdown_socket.close()
signal.signal(signal.SIGTERM, shutdown)
signal.signal(signal.SIGINT, shutdown)