Skip to content

Commit

Permalink
fix: correct SIG* exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Jan 18, 2022
1 parent d0b7f3d commit 72bcfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ def receive_signal(signum, frame):
Catches SIGTERM - Mainly to Address Docker Container Stops
"""
global logger
logger.debug('Received SIGTERM... Terminating.')
logger.debug(f"Received {signum}... Terminating...")
kill_pids()
sys.exit(0)
sys.exit(1)


def kill_pids():
Expand Down

0 comments on commit 72bcfb0

Please sign in to comment.