]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/client.cpp
Make sure real disconnect reason isn't overwritten
[dragonfireclient.git] / 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?).");
 }