mirror of
https://github.com/craigerl/aprsd.git
synced 2025-07-07 11:25:15 -04:00
Ensure PacketList is initialized
This commit is contained in:
parent
8ee8b149f1
commit
66c5d85b89
@ -477,10 +477,10 @@ def server(
|
|||||||
plugin_manager.setup_plugins()
|
plugin_manager.setup_plugins()
|
||||||
|
|
||||||
# Now load the msgTrack from disk if any
|
# Now load the msgTrack from disk if any
|
||||||
|
packets.PacketList(config=config)
|
||||||
if flush:
|
if flush:
|
||||||
LOG.debug("Deleting saved MsgTrack.")
|
LOG.debug("Deleting saved MsgTrack.")
|
||||||
messaging.MsgTrack().flush()
|
messaging.MsgTrack().flush()
|
||||||
packets.PacketList(config=config)
|
|
||||||
packets.WatchList(config=config)
|
packets.WatchList(config=config)
|
||||||
packets.SeenList(config=config)
|
packets.SeenList(config=config)
|
||||||
else:
|
else:
|
||||||
|
@ -29,6 +29,7 @@ class PacketList:
|
|||||||
cls._instance = super().__new__(cls)
|
cls._instance = super().__new__(cls)
|
||||||
cls._instance.packet_list = utils.RingBuffer(1000)
|
cls._instance.packet_list = utils.RingBuffer(1000)
|
||||||
cls._instance.lock = threading.Lock()
|
cls._instance.lock = threading.Lock()
|
||||||
|
cls._instance.config = kwargs["config"]
|
||||||
return cls._instance
|
return cls._instance
|
||||||
|
|
||||||
def __init__(self, config=None):
|
def __init__(self, config=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user