If we fail listening the first time we will never retry later since the thread watching over us are not started.
@@ -382,14 +382,14 @@ TransportServer::TransportServer(SearchServer &searchServer,
bool
TransportServer::start()
{
- if (!updateListen()) {
- return false;
- }
if (_threadPool.NewThread(this) == 0) {
LOG(error, "Could not start internal transport thread");
_failed = true;
return false;
}
+ if (!updateListen()) {
+ return false;
+ }
return true;
}
