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:
@@ -32,4 +32,10 @@ class DME(LocalFileSIGRefDataProvider):
|
||||
if latitude and longitude:
|
||||
ref.grid = latlong_to_locator(latitude, longitude, 6)
|
||||
new_data.append(ref)
|
||||
|
||||
# Bail out if a stop has been requested, i.e. the program is shutting down - no need to parse the rest
|
||||
# of the data in this case
|
||||
if self._stop:
|
||||
break
|
||||
|
||||
return new_data
|
||||
|
||||
Reference in New Issue
Block a user