From 2cffe15f0da8c2cad134f88cd9639b6e5552abd7 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Mon, 8 May 2017 11:23:49 +0200 Subject: [PATCH] fix wrong assertion --- arangod/Scheduler/ListenTask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arangod/Scheduler/ListenTask.cpp b/arangod/Scheduler/ListenTask.cpp index 90d1747063..bb3c61d771 100644 --- a/arangod/Scheduler/ListenTask.cpp +++ b/arangod/Scheduler/ListenTask.cpp @@ -70,8 +70,8 @@ void ListenTask::start() { return; } - // now it is safe to use _acceptor - TRI_ASSERT(_acceptor != nullptr); + // now it is safe to use acceptorCopy + TRI_ASSERT(acceptorCopy != nullptr); if (ec) { if (ec == boost::asio::error::operation_aborted) { @@ -90,7 +90,7 @@ void ListenTask::start() { ConnectionInfo info; - auto peer = _acceptor->movePeer(); + auto peer = acceptorCopy->movePeer(); // set the endpoint info.endpoint = _endpoint->specification(); @@ -104,7 +104,7 @@ void ListenTask::start() { handleConnected(std::move(peer), std::move(info)); if (_bound) { - _acceptor->asyncAccept(_handler); + acceptorCopy->asyncAccept(_handler); } };