mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-02 06:04:42 -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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user