mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 02:21:42 +00:00
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:
@@ -12,6 +12,7 @@ class LocalFileSIGRefDataProvider(SIGRefDataProvider):
|
||||
def __init__(self, sig, provider_config, path):
|
||||
super().__init__(sig, provider_config)
|
||||
self._path = path
|
||||
self._stop = False
|
||||
|
||||
def start(self):
|
||||
logging.debug("Loading " + self.sig_name + " SIG ref data from file.")
|
||||
@@ -29,7 +30,7 @@ class LocalFileSIGRefDataProvider(SIGRefDataProvider):
|
||||
logging.error("Exception in local file SIG Ref Data Provider (" + self.sig_name + ")", e, exc_info=True)
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
self._stop = True
|
||||
|
||||
def _file_to_data(self, path):
|
||||
"""Load a file on the given path and turn it into SIG Ref data."""
|
||||
|
||||
Reference in New Issue
Block a user