We do not retry the accept call if it fails

This commit is contained in:
ckolivas 2014-06-26 15:31:15 +03:00
parent a092fd91a4
commit c9e7dd5780

View File

@ -477,7 +477,7 @@ retry:
close(sockd);
sockd = accept(us->sockd, NULL, NULL);
if (sockd < 0) {
LOGERR("Failed to accept on connector socket, retrying in 5s");
LOGEMERG("Failed to accept on connector socket, exiting");
ret = 1;
goto out;
}