mirror of https://gitee.com/bigwinds/arangodb
fix wrong assertion
This commit is contained in:
parent
8b5d557ff7
commit
2cffe15f0d
|
@ -70,8 +70,8 @@ void ListenTask::start() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// now it is safe to use _acceptor
|
// now it is safe to use acceptorCopy
|
||||||
TRI_ASSERT(_acceptor != nullptr);
|
TRI_ASSERT(acceptorCopy != nullptr);
|
||||||
|
|
||||||
if (ec) {
|
if (ec) {
|
||||||
if (ec == boost::asio::error::operation_aborted) {
|
if (ec == boost::asio::error::operation_aborted) {
|
||||||
|
@ -90,7 +90,7 @@ void ListenTask::start() {
|
||||||
|
|
||||||
ConnectionInfo info;
|
ConnectionInfo info;
|
||||||
|
|
||||||
auto peer = _acceptor->movePeer();
|
auto peer = acceptorCopy->movePeer();
|
||||||
|
|
||||||
// set the endpoint
|
// set the endpoint
|
||||||
info.endpoint = _endpoint->specification();
|
info.endpoint = _endpoint->specification();
|
||||||
|
@ -104,7 +104,7 @@ void ListenTask::start() {
|
||||||
handleConnected(std::move(peer), std::move(info));
|
handleConnected(std::move(peer), std::move(info));
|
||||||
|
|
||||||
if (_bound) {
|
if (_bound) {
|
||||||
_acceptor->asyncAccept(_handler);
|
acceptorCopy->asyncAccept(_handler);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue