mirror of
https://github.com/craigerl/aprsd.git
synced 2025-10-14 11:07:49 -04:00
Stop all collectors on signal
This ensures that we stop all collectors at the start of the exit signal handlers. This helps prevent restarting the client after the threads have been asked to stop.
This commit is contained in:
parent
9a1c0961e6
commit
643e19b0ac
@ -72,6 +72,7 @@ def main():
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
click.echo('signal_handler: called')
|
||||
collector.Collector().stop_all()
|
||||
threads.APRSDThreadList().stop_all()
|
||||
if 'subprocess' not in str(frame):
|
||||
LOG.info(
|
||||
|
Loading…
x
Reference in New Issue
Block a user