fixed crash bug running process when we should be removing the dead client
This commit is contained in:
parent
6ac60284b3
commit
be39bb16a3
1 changed files with 1 additions and 1 deletions
|
@ -3003,7 +3003,7 @@ void ClientList::Process() {
|
|||
for (client_iter = client_list.begin(); client_iter != client_list.end(); client_iter++) {
|
||||
client = *client_iter;
|
||||
// have a sanity check because the client list can sometimes obtain null client pointers
|
||||
if (!client || (!client->Process() || client->remove_from_list)) {
|
||||
if (!client || client->remove_from_list || (!client->Process())) { // if we should be removing from list, don't process any further
|
||||
erase_iter = client_iter;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue