mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-22 15:45:22 +03:00
Merge pull request #655 from simons-public/elevate-bind-failure-to-error
Elevate XSocketAddressInUse to ERROR
This commit is contained in:
commit
fe0f3303d7
@ -560,10 +560,10 @@ ServerApp::startServer()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (XSocketAddressInUse& e) {
|
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);
|
closeClientListener(listener);
|
||||||
updateStatus(String("cannot listen for clients: ") + e.what());
|
updateStatus(String("cannot listen for clients: ") + e.what());
|
||||||
retryTime = 10.0;
|
retryTime = 1.0;
|
||||||
}
|
}
|
||||||
catch (XBase& e) {
|
catch (XBase& e) {
|
||||||
LOG((CLOG_CRIT "failed to start server: %s", e.what()));
|
LOG((CLOG_CRIT "failed to start server: %s", e.what()));
|
||||||
|
Loading…
Reference in New Issue
Block a user