mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Make sure real disconnect reason isn't overwritten
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
This commit is contained in:
parent
998e4820c9
commit
85c824ed13
@ -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?).");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user