mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 09:27:38 +02:00
fix lock order inversion
This commit is contained in:
parent
f47d0df9d7
commit
f045602915
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ void ControlServer::send(const std::string& message, const ControlSession* exclu
|
||||||
|
|
||||||
std::string ControlServer::onMessageReceived(ControlSession* connection, const std::string& message)
|
std::string ControlServer::onMessageReceived(ControlSession* connection, const std::string& message)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::recursive_mutex> mlock(session_mutex_);
|
// LOG(DEBUG) << "received: \"" << message << "\"\n";
|
||||||
LOG(DEBUG) << "received: \"" << message << "\"\n";
|
|
||||||
if (controlMessageReceiver_ != nullptr)
|
if (controlMessageReceiver_ != nullptr)
|
||||||
return controlMessageReceiver_->onMessageReceived(connection, message);
|
return controlMessageReceiver_->onMessageReceived(connection, message);
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue