diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index 22af53ae8..f80080140 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -58,8 +58,13 @@ RemoteStore::RemoteStore(const Config & config) ref RemoteStore::openConnectionWrapper() { - if (failed) + if (failed) { + checkInterrupt(); + /* Throw Interrupted instead of the following error to silence pesky + warning messages that ThreadPool prints on shutdown if other threads + failed. */ throw Error("opening a connection to remote store '%s' previously failed", config.getHumanReadableURI()); + } try { return openConnection(); } catch (...) {