mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Sleep a bit between attempts to connect to the root server
This commit is contained in:
parent
302625e83b
commit
0b1d93d2ba
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ void LocalStore::addTempRoot(const StorePath & path)
|
||||||
if (e.errNo == ECONNREFUSED || e.errNo == ENOENT) {
|
if (e.errNo == ECONNREFUSED || e.errNo == ENOENT) {
|
||||||
debug("GC socket connection refused: %s", e.msg());
|
debug("GC socket connection refused: %s", e.msg());
|
||||||
fdRootsSocket->close();
|
fdRootsSocket->close();
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
throw;
|
throw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue