mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-06 19:27:42 +02:00
renamed "add" to "sendAsync"
This commit is contained in:
parent
8b98a79806
commit
02ec52e765
4 changed files with 7 additions and 7 deletions
|
@ -93,7 +93,7 @@ void StreamServer::onDisconnect(ClientSession* connection)
|
|||
}
|
||||
|
||||
|
||||
void StreamServer::onMessageReceived(ControlSession* connection, const std::string& message)
|
||||
void StreamServer::onMessageReceived(ControlSession* controlSession, const std::string& message)
|
||||
{
|
||||
JsonRequest request;
|
||||
try
|
||||
|
@ -171,16 +171,16 @@ void StreamServer::onMessageReceived(ControlSession* connection, const std::stri
|
|||
controlServer_->send(notification.dump());
|
||||
}
|
||||
|
||||
connection->send(request.getResponse(response).dump());
|
||||
controlSession->send(request.getResponse(response).dump());
|
||||
}
|
||||
catch (const JsonRequestException& e)
|
||||
{
|
||||
connection->send(e.getResponse().dump());
|
||||
controlSession->send(e.getResponse().dump());
|
||||
}
|
||||
catch (const exception& e)
|
||||
{
|
||||
JsonInternalErrorException jsonException(e.what(), request.id);
|
||||
connection->send(jsonException.getResponse().dump());
|
||||
controlSession->send(jsonException.getResponse().dump());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue