1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-20 16:41:13 -05:00

Fixed issue at startup with notify plugin

Ensure that the aprsis client is configured prior to starting
any plugins.
This commit is contained in:
Hemna 2021-09-02 09:54:13 -04:00
parent 0f6df5fc05
commit 1ea6c05dec

View File

@ -459,10 +459,6 @@ def server(
trace.setup_tracing(["method", "api"])
stats.APRSDStats(config)
# Create the initial PM singleton and Register plugins
plugin_manager = plugin.PluginManager(config)
plugin_manager.setup_plugins()
if config["aprs"].get("enabled", True):
try:
cl = client.Client(config)
@ -481,6 +477,10 @@ def server(
" for setups without internet connectivity.",
)
# Create the initial PM singleton and Register plugins
plugin_manager = plugin.PluginManager(config)
plugin_manager.setup_plugins()
# Now load the msgTrack from disk if any
if flush:
LOG.debug("Deleting saved MsgTrack.")