From 3cdbf08315ff2900627c4f1b69d0405f1f254bdc Mon Sep 17 00:00:00 2001 From: Petr Date: Fri, 30 Aug 2024 14:57:59 +0200 Subject: [PATCH] Ignore not response messages during login --- libshviotqt/src/rpc/clientconnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libshviotqt/src/rpc/clientconnection.cpp b/libshviotqt/src/rpc/clientconnection.cpp index c16ecdf6a..b109bfd15 100644 --- a/libshviotqt/src/rpc/clientconnection.cpp +++ b/libshviotqt/src/rpc/clientconnection.cpp @@ -339,7 +339,9 @@ void ClientConnection::onRpcMessageReceived(const chainpack::RpcMessage &rpc_msg } } if(isLoginPhase()) { - processLoginPhase(rpc_msg); + if (rpc_msg.isResponse()) { + processLoginPhase(rpc_msg); + } return; } if(rpc_msg.isResponse()) {