summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-01 00:13:09 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-01 00:13:09 +0200
commitf8ed84836012676cebc9a9b1ba08ec02582f3f0e (patch)
tree4a968ebc3c8ecf4a4f0d7e1b51701a33d4e98920 /searchlib
parent04d0e0e385671da5d4298a7d23cae57e3f5114f8 (diff)
If we fail listening the first time we will never retry later since the thread watching over us are not started.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/engine/transportserver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/engine/transportserver.cpp b/searchlib/src/vespa/searchlib/engine/transportserver.cpp
index 4e46035b687..5105c7d8b7f 100644
--- a/searchlib/src/vespa/searchlib/engine/transportserver.cpp
+++ b/searchlib/src/vespa/searchlib/engine/transportserver.cpp
@@ -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;
}