diff options
-rw-r--r-- | src/remoteauth/remoteauthclient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remoteauth/remoteauthclient.cpp b/src/remoteauth/remoteauthclient.cpp index 083bdaa..7f41d71 100644 --- a/src/remoteauth/remoteauthclient.cpp +++ b/src/remoteauth/remoteauthclient.cpp @@ -264,8 +264,14 @@ void RemoteAuthClient::OnWebsocketOpen() { void RemoteAuthClient::OnWebsocketClose(const ix::WebSocketCloseInfo &info) { if (info.remote) { m_log->debug("Websocket closed (remote): {} ({})", info.code, info.reason); + if (m_connected) { + m_signal_error.emit("Error. Websocket closed (remote): " + std::to_string(info.code) + " (" + info.reason + ")"); + } } else { m_log->debug("Websocket closed (local): {} ({})", info.code, info.reason); + if (m_connected) { + m_signal_error.emit("Error. Websocket closed (local): " + std::to_string(info.code) + " (" + info.reason + ")"); + } } } |