Only call server request callback if not NULL.
parent
d07ffec5f3
commit
968cd6d601
|
@ -424,6 +424,7 @@ void Steam_Matchmaking_Servers::RunCallbacks()
|
||||||
if (r.cancelled || r.completed) continue;
|
if (r.cancelled || r.completed) continue;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
if (r.callbacks) {
|
||||||
for (auto &g : r.gameservers_filtered) {
|
for (auto &g : r.gameservers_filtered) {
|
||||||
PRINT_DEBUG("REQUESTS server responded cb %p\n", r.id);
|
PRINT_DEBUG("REQUESTS server responded cb %p\n", r.id);
|
||||||
r.callbacks->ServerResponded(r.id, i);
|
r.callbacks->ServerResponded(r.id, i);
|
||||||
|
@ -436,6 +437,7 @@ void Steam_Matchmaking_Servers::RunCallbacks()
|
||||||
r.callbacks->RefreshComplete(r.id, eNoServersListedOnMasterServer);
|
r.callbacks->RefreshComplete(r.id, eNoServersListedOnMasterServer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
std::vector <struct Steam_Matchmaking_Servers_Direct_IP_Request> direct_ip_requests_temp = direct_ip_requests;
|
std::vector <struct Steam_Matchmaking_Servers_Direct_IP_Request> direct_ip_requests_temp = direct_ip_requests;
|
||||||
direct_ip_requests.clear();
|
direct_ip_requests.clear();
|
||||||
|
|
Loading…
Reference in New Issue