mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
Only call server request callback if not NULL.
This commit is contained in:
parent
d07ffec5f3
commit
968cd6d601
@ -424,16 +424,18 @@ void Steam_Matchmaking_Servers::RunCallbacks()
|
|||||||
if (r.cancelled || r.completed) continue;
|
if (r.cancelled || r.completed) continue;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
for (auto &g : r.gameservers_filtered) {
|
if (r.callbacks) {
|
||||||
PRINT_DEBUG("REQUESTS server responded cb %p\n", r.id);
|
for (auto &g : r.gameservers_filtered) {
|
||||||
r.callbacks->ServerResponded(r.id, i);
|
PRINT_DEBUG("REQUESTS server responded cb %p\n", r.id);
|
||||||
++i;
|
r.callbacks->ServerResponded(r.id, i);
|
||||||
}
|
++i;
|
||||||
|
}
|
||||||
|
|
||||||
if (i) {
|
if (i) {
|
||||||
r.callbacks->RefreshComplete(r.id, eServerResponded);
|
r.callbacks->RefreshComplete(r.id, eServerResponded);
|
||||||
} else {
|
} else {
|
||||||
r.callbacks->RefreshComplete(r.id, eNoServersListedOnMasterServer);
|
r.callbacks->RefreshComplete(r.id, eNoServersListedOnMasterServer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user