Fix request timeout error dialog

The error dialog only showed "Failed to connect to server. The
connection request timed out." while since 78900842b1 it was supposed to
display a longer, more detailed message with a link to the FAQ. But this
never worked.
This commit is contained in:
Vantha 2026-02-14 18:56:38 +01:00 committed by Vantha
parent 0168ad9cbe
commit 963fed0036

View file

@ -120,7 +120,7 @@ function getMismatchMessage(mismatchType, clientMismatchInfo, serverMismatchInfo
*/
function reportDisconnect(message, wasConnected)
{
if (message.reason === 0)
if (message.reason === 1)
reportConnectionRequestTimeOut();
else if (message.reason == 16)
reportMismatchingSoftwareVersions(message.mismatch_type, message.client_mismatch, message.server_mismatch);