mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
Use namespace "boost::asio" instead of "net"
This commit is contained in:
parent
989eb6ec8e
commit
4f29f000de
16 changed files with 79 additions and 74 deletions
|
@ -32,7 +32,7 @@ static constexpr auto LOG_TAG = "ControlSessionWS";
|
|||
|
||||
|
||||
ControlSessionWebsocket::ControlSessionWebsocket(ControlMessageReceiver* receiver, websocket::stream<beast::tcp_stream>&& socket)
|
||||
: ControlSession(receiver), ws_(std::move(socket)), strand_(net::make_strand(ws_.get_executor()))
|
||||
: ControlSession(receiver), ws_(std::move(socket)), strand_(boost::asio::make_strand(ws_.get_executor()))
|
||||
{
|
||||
LOG(DEBUG, LOG_TAG) << "ControlSessionWebsocket\n";
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ void ControlSessionWebsocket::stop()
|
|||
|
||||
void ControlSessionWebsocket::sendAsync(const std::string& message)
|
||||
{
|
||||
net::post(strand_, [this, self = shared_from_this(), msg = message]() {
|
||||
boost::asio::post(strand_, [this, self = shared_from_this(), msg = message]() {
|
||||
messages_.push_back(std::move(msg));
|
||||
if (messages_.size() > 1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue