From 85c824ed136269ee3ee0b650406ce80c8a60c014 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 26 May 2022 20:47:16 +0200 Subject: Make sure real disconnect reason isn't overwritten bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0 --- src/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/client.cpp b/src/client/client.cpp index e078dc530..93a403e81 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -803,7 +803,7 @@ void Client::deletingPeer(con::Peer *peer, bool timeout) m_access_denied = true; if (timeout) m_access_denied_reason = gettext("Connection timed out."); - else + else if (m_access_denied_reason.empty()) m_access_denied_reason = gettext("Connection aborted (protocol error?)."); } -- cgit v1.2.3