Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fokkonaut committed Jul 2, 2024
1 parent 6958620 commit 1ed429c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -724,8 +726,6 @@ void CClient::DisconnectWithReason(const char *pReason)

void CClient::Disconnect()
{
if (m_DummyConnected)
DummyDisconnect(0);
DisconnectWithReason(0);
}

Expand Down

0 comments on commit 1ed429c

Please sign in to comment.