Refresh server browser on startup

User gets to see all available servers directly without having to refresh first.
This commit is contained in:
Kawe Mazidjatari 2022-08-04 22:49:30 +02:00
parent 33b588b42e
commit c568995d56

View File

@ -48,6 +48,13 @@ CBrowser::CBrowser(void)
{
while (true)
{
static bool bRefreshed = false;
if (!bRefreshed) // Refresh when created.
{
RefreshServerList();
bRefreshed = true;
}
UpdateHostingStatus();
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
}