mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
keep cancelled outline and search asks free during the Nominatim probe
Recheck the caller's signal right after the capability probe on every path, so an ask cleared while the probe is pending starts no outline or last-resort search request, whether the probe says configured, unknown or not configured.
This commit is contained in:
1 parent
f32ab5446b
commit
3824b4ebfc
4 files changed
+69
-7
No files matched your search
@@ -96,8 +96,10 @@ export function createNominatimOutlineClient({
|
||||
if (remembered.has(key)) return remembered.get(key);
|
||||
// A cancelled ask spends nothing.
|
||||
signal?.throwIfAborted();
|
||||
if (configured && (await configured()) === false) {
|
||||
signal?.throwIfAborted();
|
||||
const capability = configured ? await configured() : null;
|
||||
// The probe may have waited: an ask cancelled meanwhile still spends nothing.
|
||||
signal?.throwIfAborted();
|
||||
if (capability === false) {
|
||||
unavailable = {
|
||||
unavailable: true,
|
||||
retryable: false,
|
||||
|
||||
Reference in new issue
Block a user