mirror of https://github.com/craigerl/aprsd.git
Fix some issues with listen command
The listen command had some older references to some of the thread modules. this patch fixes those.
This commit is contained in:
parent
2c5bc6c1f7
commit
8728926bf4
|
@ -19,7 +19,8 @@ from aprsd import cli_helper, client, packets, plugin, threads
|
||||||
from aprsd.main import cli
|
from aprsd.main import cli
|
||||||
from aprsd.packets import log as packet_log
|
from aprsd.packets import log as packet_log
|
||||||
from aprsd.stats import collector
|
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
|
# setup the global logger
|
||||||
|
@ -190,7 +191,7 @@ def listen(
|
||||||
LOG.debug(f"Filter by '{filter}'")
|
LOG.debug(f"Filter by '{filter}'")
|
||||||
aprs_client.set_filter(filter)
|
aprs_client.set_filter(filter)
|
||||||
|
|
||||||
keepalive = threads.KeepAliveThread()
|
keepalive = keep_alive.KeepAliveThread()
|
||||||
# keepalive.start()
|
# keepalive.start()
|
||||||
|
|
||||||
pm = None
|
pm = None
|
||||||
|
@ -203,8 +204,8 @@ def listen(
|
||||||
"Not Loading any plugins use --load-plugins to load what's "
|
"Not Loading any plugins use --load-plugins to load what's "
|
||||||
"defined in the config file.",
|
"defined in the config file.",
|
||||||
)
|
)
|
||||||
stats_thread = threads.APRSDStatsStoreThread()
|
stats = stats_thread.APRSDStatsStoreThread()
|
||||||
stats_thread.start()
|
stats.start()
|
||||||
|
|
||||||
LOG.debug("Create APRSDListenThread")
|
LOG.debug("Create APRSDListenThread")
|
||||||
listen_thread = APRSDListenThread(
|
listen_thread = APRSDListenThread(
|
||||||
|
@ -220,4 +221,4 @@ def listen(
|
||||||
keepalive.join()
|
keepalive.join()
|
||||||
LOG.debug("listen_thread Join")
|
LOG.debug("listen_thread Join")
|
||||||
listen_thread.join()
|
listen_thread.join()
|
||||||
stats_thread.join()
|
stats.join()
|
||||||
|
|
Loading…
Reference in New Issue