From 8728926bf4163dc7919d7e42772fe7da93f4a89b Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 9 Apr 2024 09:58:59 -0400 Subject: [PATCH] Fix some issues with listen command The listen command had some older references to some of the thread modules. this patch fixes those. --- aprsd/cmds/listen.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/aprsd/cmds/listen.py b/aprsd/cmds/listen.py index b30eee6..f17f5e8 100644 --- a/aprsd/cmds/listen.py +++ b/aprsd/cmds/listen.py @@ -19,7 +19,8 @@ from aprsd import cli_helper, client, packets, plugin, threads from aprsd.main import cli from aprsd.packets import log as packet_log from aprsd.stats import collector -from aprsd.threads import rx +from aprsd.threads import keep_alive, rx +from aprsd.threads import stats as stats_thread # setup the global logger @@ -190,7 +191,7 @@ def listen( LOG.debug(f"Filter by '{filter}'") aprs_client.set_filter(filter) - keepalive = threads.KeepAliveThread() + keepalive = keep_alive.KeepAliveThread() # keepalive.start() pm = None @@ -203,8 +204,8 @@ def listen( "Not Loading any plugins use --load-plugins to load what's " "defined in the config file.", ) - stats_thread = threads.APRSDStatsStoreThread() - stats_thread.start() + stats = stats_thread.APRSDStatsStoreThread() + stats.start() LOG.debug("Create APRSDListenThread") listen_thread = APRSDListenThread( @@ -220,4 +221,4 @@ def listen( keepalive.join() LOG.debug("listen_thread Join") listen_thread.join() - stats_thread.join() + stats.join()