From 95fecd2394f77d8a64e94b44933cf6b80a9e43b6 Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 25 Oct 2021 11:22:46 -0400 Subject: [PATCH] Ensure plugins are last to be loaded. This patch initializes all of the MsgTrack, WatchList and SeenList prior to the plugins loading. Some plugins may kick off messages being sent immediately. So everything has to be ready to go prior to the plugins being loaded. --- aprsd/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aprsd/main.py b/aprsd/main.py index f027d7b..b07f8fd 100644 --- a/aprsd/main.py +++ b/aprsd/main.py @@ -470,11 +470,6 @@ def server( LOG.info("Creating client connection") client.factory.create().client - # Create the initial PM singleton and Register plugins - LOG.info("Loading Plugin Manager and registering plugins") - plugin_manager = plugin.PluginManager(config) - plugin_manager.setup_plugins() - # Now load the msgTrack from disk if any packets.PacketList(config=config) if flush: @@ -489,6 +484,11 @@ def server( packets.WatchList(config=config).load() packets.SeenList(config=config).load() + # Create the initial PM singleton and Register plugins + LOG.info("Loading Plugin Manager and registering plugins") + plugin_manager = plugin.PluginManager(config) + plugin_manager.setup_plugins() + rx_thread = threads.APRSDRXThread( msg_queues=threads.msg_queues, config=config,