Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2005 committed Oct 13, 2020
1 parent ac68856 commit b105bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Channel/ServiceChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/USB/AccessoryModeQueryChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
Expand Down

0 comments on commit b105bd6

Please sign in to comment.