Atomic, EOF-checked extract downloads; Apply starts builds one after another so routing waits for the offline map's downloads
This commit is contained in:
1 parent
bf912b96e5
commit
d93c77727f
3 files changed
+58
-2
No files matched your search
@@ -397,7 +397,13 @@ export class OfflineDataControl {
|
||||
formatMeta: formatRoutingMeta,
|
||||
}),
|
||||
];
|
||||
this._regionPicker = new RegionPicker(() => this._rows.forEach((row) => row.triggerBuild()));
|
||||
// One after another (each returns once its build has started, not
|
||||
// finished): the routing request must reach the server after the
|
||||
// offline build has, so it waits for the extracts that build downloads
|
||||
// (Routing.request_build) instead of building from half-written ones.
|
||||
this._regionPicker = new RegionPicker(async () => {
|
||||
for (const row of this._rows) await row.triggerBuild();
|
||||
});
|
||||
}
|
||||
|
||||
mount(sidebar) {
|
||||
|
||||
Reference in new issue
Block a user