matt 2020-10-13 20:36:06 +00:00
parent ac688560ee
commit b105bd602f
No known key found for this signature in database
GPG Key ID: 089C8B076569DD58
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ ServiceChannel::ServiceChannel(boost::asio::io_service::strand& strand,
void ServiceChannel::send(messenger::Message::Pointer message, SendPromise::Pointer promise)
{
auto sendPromise = messenger::SendPromise::defer(strand_.get_io_service());
auto sendPromise = messenger::SendPromise::defer(strand_.context());
io::PromiseLink<>::forward(*sendPromise, std::move(promise));
messenger_->enqueueSend(std::move(message), std::move(sendPromise));
}

View File

@ -58,7 +58,7 @@ void AccessoryModeQueryChain::start(DeviceHandle handle, Promise::Pointer promis
});
this->startQuery(AccessoryModeQueryType::PROTOCOL_VERSION,
std::make_shared<USBEndpoint>(usbWrapper_, strand_.get_io_service(), std::move(handle)),
std::make_shared<USBEndpoint>(usbWrapper_, strand_.context(), std::move(handle)),
std::move(queryPromise));
}
});