mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Make sure real disconnect reason isn't overwritten
bug introduced in 2f32044273
This commit is contained in:
@@ -803,7 +803,7 @@ void Client::deletingPeer(con::Peer *peer, bool timeout)
|
|||||||
m_access_denied = true;
|
m_access_denied = true;
|
||||||
if (timeout)
|
if (timeout)
|
||||||
m_access_denied_reason = gettext("Connection timed out.");
|
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?).");
|
m_access_denied_reason = gettext("Connection aborted (protocol error?).");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user