1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-10-14 02:57:48 -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:
Walter Boring 2025-10-09 10:51:15 -04:00
parent 9a1c0961e6
commit 643e19b0ac

View File

@ -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(