mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-05 18:11:41 +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:
@@ -22,6 +22,12 @@ class ITUZoneData(LocalFileStaticDataProvider):
|
||||
itu_zone_data = geopandas.GeoDataFrame.from_features(json.load(f)["features"])
|
||||
for idx in itu_zone_data.index:
|
||||
prepare(itu_zone_data.at[idx, 'geometry'])
|
||||
|
||||
# Bail out if a stop has been requested, i.e. the program is shutting down - no need to prepare the rest
|
||||
# of the data in this case
|
||||
if self.stop:
|
||||
break
|
||||
|
||||
DATA_STORE.itu_zone_data = itu_zone_data
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user