]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Make sure real disconnect reason isn't overwritten
authorsfan5 <sfan5@live.de>
Thu, 26 May 2022 18:47:16 +0000 (20:47 +0200)
committersfan5 <sfan5@live.de>
Sun, 29 May 2022 12:00:19 +0000 (14:00 +0200)
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0

src/client/client.cpp

index e078dc530bd2eb69fc61e26b681dd9fd1ae6874d..93a403e81716259213e55f68a9e4ed303695b76d 100644 (file)
@@ -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?).");
 }