mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +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
Reference in a new issue