mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
Now properly cleaning up pending client cvar queries in the queue on client disconnect
This commit is contained in:
parent
f8227a09b4
commit
aa0e4e121e
@ -61,7 +61,12 @@ void CPlayer::Disconnect() {
|
||||
authorized = false;
|
||||
|
||||
while (!cvarQueryQueue.empty())
|
||||
{
|
||||
ClientCvarQuery_Info *pQuery = cvarQueryQueue.front();
|
||||
unregisterSPForward(pQuery->resultFwd);
|
||||
delete pQuery;
|
||||
cvarQueryQueue.pop();
|
||||
}
|
||||
|
||||
bot = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user