From 1ed429c90d91d03d4a32624377acc9bd3bb36bf2 Mon Sep 17 00:00:00 2001 From: fokkonaut <35420825+fokkonaut@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:48:16 +0200 Subject: [PATCH] Fix --- src/engine/client/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index d034af13..988ed002 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -670,6 +670,8 @@ void CClient::Connect(const char *pAddress) void CClient::DisconnectWithReason(const char *pReason) { + DummyDisconnect(pReason); + char aBuf[512]; str_format(aBuf, sizeof(aBuf), "disconnecting. reason='%s'", pReason?pReason:"unknown"); m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "client", aBuf); @@ -724,8 +726,6 @@ void CClient::DisconnectWithReason(const char *pReason) void CClient::Disconnect() { - if (m_DummyConnected) - DummyDisconnect(0); DisconnectWithReason(0); }