forked from lix-project/lix
Sleep a bit between attempts to connect to the root server
This commit is contained in:
parent
302625e83b
commit
0b1d93d2ba
|
@ -154,6 +154,7 @@ void LocalStore::addTempRoot(const StorePath & path)
|
|||
if (e.errNo == ECONNREFUSED || e.errNo == ENOENT) {
|
||||
debug("GC socket connection refused: %s", e.msg());
|
||||
fdRootsSocket->close();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
goto restart;
|
||||
}
|
||||
throw;
|
||||
|
|
Loading…
Reference in a new issue