mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Server: fix refactoring mistake
This commit is contained in:
@ -80,7 +80,6 @@ void WSServer::broadcast(QString message) {
|
|||||||
// Skip this client if unauthenticated
|
// Skip this client if unauthenticated
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
pClient->sendTextMessage(message);
|
pClient->sendTextMessage(message);
|
||||||
}
|
}
|
||||||
_clMutex.unlock();
|
_clMutex.unlock();
|
||||||
@ -89,11 +88,6 @@ void WSServer::broadcast(QString message) {
|
|||||||
void WSServer::onNewConnection() {
|
void WSServer::onNewConnection() {
|
||||||
QWebSocket* pSocket = _wsServer->nextPendingConnection();
|
QWebSocket* pSocket = _wsServer->nextPendingConnection();
|
||||||
if (pSocket) {
|
if (pSocket) {
|
||||||
connect(pSocket, &QWebSocket::textMessageReceived,
|
|
||||||
this, &WSServer::onTextMessageReceived);
|
|
||||||
connect(pSocket, &QWebSocket::disconnected,
|
|
||||||
this, &WSServer::onSocketDisconnected);
|
|
||||||
|
|
||||||
connect(pSocket, SIGNAL(textMessageReceived(const QString&)),
|
connect(pSocket, SIGNAL(textMessageReceived(const QString&)),
|
||||||
this, SLOT(onTextMessageReceived(QString)));
|
this, SLOT(onTextMessageReceived(QString)));
|
||||||
connect(pSocket, SIGNAL(disconnected()),
|
connect(pSocket, SIGNAL(disconnected()),
|
||||||
|
Reference in New Issue
Block a user