Skip to content

Commit

Permalink
Merge pull request #485 from CroatianMeteorNetwork/Cybis320/issue482
Browse files Browse the repository at this point in the history
Add log entry to prevent ctrl-c failure
  • Loading branch information
dvida authored Dec 20, 2024
2 parents b3fc70b + 462e824 commit 02e2c5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RMS/StartCapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def breakHandler(signum, frame):
# Set the flag to stop capturing video
STOP_CAPTURE = True

# This log entry is an adhoc fix to prevents Ctrl+C failure until the root cause is identified
log.info("Ctrl+C pressed. Setting STOP_CAPTURE to True")

# Save the original event for the Ctrl+C
ORIGINAL_BREAK_HANDLE = signal.getsignal(signal.SIGINT)
Expand Down

0 comments on commit 02e2c5d

Please sign in to comment.