Merge "Fix global-variable-not-assigned warnings"

This commit is contained in:
Zuul 2024-04-22 15:48:58 +00:00 committed by Gerrit Code Review
commit febc39733e
1 changed files with 5 additions and 5 deletions

View File

@ -32,12 +32,12 @@ READ_QUEUE = None
def sigterm_handler(_signo, _stack_frame):
global EVENT_STOP
global IP_MONITOR
global READ_QUEUE
EVENT_STOP.set()
IP_MONITOR.join()
READ_QUEUE.join()
# These might not be initialized if SIGTERM before assignment below
if IP_MONITOR:
IP_MONITOR.join()
if READ_QUEUE:
READ_QUEUE.join()
sys.exit(0)