Fix wrong strand usage

pull/1/head
michal.szwaj 2018-03-15 22:33:06 +01:00
parent 2ba44d220e
commit 953190a8be
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ TCPTransport::TCPTransport(boost::asio::io_service& ioService, tcp::ITCPEndpoint
void TCPTransport::enqueueReceive(common::DataBuffer buffer)
{
auto receivePromise = tcp::ITCPEndpoint::Promise::defer(sendStrand_);
auto receivePromise = tcp::ITCPEndpoint::Promise::defer(receivesendStrand_);
receivePromise->then([this, self = this->shared_from_this()](auto bytesTransferred) {
this->receiveHandler(bytesTransferred);
},