Skip to content

Commit

Permalink
Fix multiple redirected clients not dropped in the same tick
Browse files Browse the repository at this point in the history
Closes #8551.

(cherry picked from commit 350a57df60fef4c19eeb27e752730ad59085234d)
  • Loading branch information
Robyt3 authored and Kaffeine committed Jul 9, 2024
1 parent 5aca628 commit d3fba6c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/engine/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3219,14 +3219,21 @@ int CServer::Run()
if(!NonActive)
PumpNetwork(PacketWaiting);

NonActive = true;

for(int i = 0; i < MAX_CLIENTS; ++i)
{
if(m_aClients[i].m_State == CClient::STATE_REDIRECTED)
{
if(time_get() > m_aClients[i].m_RedirectDropTime)
{
m_NetServer.Drop(i, EClientDropType::Redirected, "redirected");
if(m_aClients[i].m_State != CClient::STATE_EMPTY)
}
}
}

NonActive = true;
for(const auto &Client : m_aClients)
{
if(Client.m_State != CClient::STATE_EMPTY)
{
NonActive = false;
break;
Expand Down

0 comments on commit d3fba6c

Please sign in to comment.