diff --git a/src/serverrpc.cpp b/src/serverrpc.cpp index 26db5257bb..05bb54be62 100644 --- a/src/serverrpc.cpp +++ b/src/serverrpc.cpp @@ -76,7 +76,7 @@ CServerRpc::CServerRpc ( CServer* pServer, CRpcServer* pRpcServer, QObject* pare /// @rpc_notification jamulusserver/clientDisconnected /// @brief Emitted when a client has disconnected from the server. /// @param {number} params.id - The channel ID assigned to the client. - connect ( pServer, &CServer::ClientDisconnected, [=] ( const int iChanID ) { + connect ( pServer, &CServer::ClientDisconnected, this, [=] ( const int iChanID ) { pRpcServer->BroadcastNotification ( "jamulusserver/clientDisconnected", QJsonObject{ { "id", iChanID },