From bbc504ce72272b9aae749c3c1cd0030bcfed03f6 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 13 Jun 2021 03:24:22 -0700 Subject: [PATCH] WebSocketServer: Remove unnecessary signals --- src/WebSocketServer.cpp | 2 -- src/WebSocketServer.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/WebSocketServer.cpp b/src/WebSocketServer.cpp index cf3a2718..b53fd376 100644 --- a/src/WebSocketServer.cpp +++ b/src/WebSocketServer.cpp @@ -323,8 +323,6 @@ void WebSocketServer::onClose(websocketpp::connection_hdl hdl) // Emit signals emit ClientDisconnected(state, conn->get_local_close_code()); - if (isIdentified) - emit IdentifiedClientDisconnected(state, conn->get_local_close_code()); } void WebSocketServer::onMessage(websocketpp::connection_hdl hdl, websocketpp::server::message_ptr message) diff --git a/src/WebSocketServer.h b/src/WebSocketServer.h index 8564f272..027f90b6 100644 --- a/src/WebSocketServer.h +++ b/src/WebSocketServer.h @@ -82,9 +82,7 @@ class WebSocketServer : QObject void BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData = nullptr, uint8_t rpcVersion = 0); signals: - void ClientIdentified(const WebSocketSessionState state); void ClientDisconnected(const WebSocketSessionState state, const uint16_t closeCode); - void IdentifiedClientDisconnected(const WebSocketSessionState state, const uint16_t closeCode); private: void ServerRunner();