HttpBinaryCacheStore::getFile(): Fix uncaught exception

This method is marked as `noexcept`, but `enqueueFileTransfer()` can
throw `Interrupted` if the user has hit Ctrl-C or if the `ThreadPool`
that the thread is a part of is shutting down.
This commit is contained in:
Eelco Dolstra 2024-09-27 00:16:52 +02:00
parent 0ed67e5b7e
commit 4566854981

View file

@ -169,10 +169,6 @@ protected:
{ {
try { try {
checkEnabled(); checkEnabled();
} catch (...) {
callback.rethrow();
return;
}
auto request(makeRequest(path)); auto request(makeRequest(path));
@ -191,6 +187,11 @@ protected:
callbackPtr->rethrow(); callbackPtr->rethrow();
} }
}}); }});
} catch (...) {
callback.rethrow();
return;
}
} }
/** /**