Create lobby even if the run callbacks function is never run.

This commit is contained in:
Mr_Goldberg 2019-06-01 13:11:27 -04:00
parent c4e0c855df
commit 794469c4cf
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
4 changed files with 16 additions and 10 deletions

View file

@ -1115,8 +1115,7 @@ bool SetLinkedLobby( CSteamID steamIDLobby, CSteamID steamIDLobbyDependent )
return false;
}
void RunCallbacks()
void RunBackground()
{
remove_lobbies();
Create_pending_lobbies();
@ -1125,6 +1124,11 @@ void RunCallbacks()
send_lobby_data();
last_sent_lobbies = std::chrono::high_resolution_clock::now();
}
}
void RunCallbacks()
{
RunBackground();
if (searching) {
PRINT_DEBUG("Searching for lobbies %zu\n", lobbies.size());