Elevate XSocketAddressInUse to ERROR

Errors where the socket address is in use will keep the server from connecting
with clients. This should be reported as an ERROR instead of a warning. Also,
if the retry time is shorter issues will be more obvious, since the error will
cause the log to scroll visibly.
This commit is contained in:
Chris Simons 2020-05-05 16:19:22 -07:00
parent 675a17d6e8
commit b3349ddfec
1 changed files with 2 additions and 2 deletions

View File

@ -560,10 +560,10 @@ ServerApp::startServer()
return true;
}
catch (XSocketAddressInUse& e) {
LOG((CLOG_WARN "cannot listen for clients: %s", e.what()));
LOG((CLOG_ERR "cannot listen for clients: %s", e.what()));
closeClientListener(listener);
updateStatus(String("cannot listen for clients: ") + e.what());
retryTime = 10.0;
retryTime = 1.0;
}
catch (XBase& e) {
LOG((CLOG_CRIT "failed to start server: %s", e.what()));