From a1bd27dfde442f1db88b7f6025d1b590e3139044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20L?= Date: Sat, 5 Aug 2017 19:16:30 +0200 Subject: [PATCH] Server: fix refactoring mistake --- WSServer.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/WSServer.cpp b/WSServer.cpp index 726f76c1..85b3c3b3 100644 --- a/WSServer.cpp +++ b/WSServer.cpp @@ -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()),