Fix issue where, if a shutdown request was sent while parsing static reference data, the program would continue parsing. #118

This commit is contained in:
Ian Renton
2026-08-02 08:01:25 +01:00
parent 5bfe480f7c
commit 0b0c8aa4f3
22 changed files with 117 additions and 8 deletions
@@ -12,6 +12,7 @@ class LocalFileStaticDataProvider(StaticDataProvider):
def __init__(self, name, provider_config, path):
super().__init__(name, provider_config)
self._path = path
self._stop = False
def start(self):
logging.debug("Loading " + self.name + " static reference data from file.")
@@ -29,7 +30,7 @@ class LocalFileStaticDataProvider(StaticDataProvider):
logging.error("Exception in local file Static Data Provider (" + self.name + ")", e, exc_info=True)
def stop(self):
pass
self._stop = True
def _load_data(self, path):
"""Load data from the given file path. Return true if successful, false otherwise."""