Server: fix refactoring mistake

This commit is contained in:
Stéphane L
2017-08-05 19:16:30 +02:00
parent 6ac3a3de57
commit a1bd27dfde

View File

@ -80,7 +80,6 @@ void WSServer::broadcast(QString message) {
// Skip this client if unauthenticated
continue;
}
pClient->sendTextMessage(message);
}
_clMutex.unlock();
@ -89,11 +88,6 @@ void WSServer::broadcast(QString message) {
void WSServer::onNewConnection() {
QWebSocket* pSocket = _wsServer->nextPendingConnection();
if (pSocket) {
connect(pSocket, &QWebSocket::textMessageReceived,
this, &WSServer::onTextMessageReceived);
connect(pSocket, &QWebSocket::disconnected,
this, &WSServer::onSocketDisconnected);
connect(pSocket, SIGNAL(textMessageReceived(const QString&)),
this, SLOT(onTextMessageReceived(QString)));
connect(pSocket, SIGNAL(disconnected()),