mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Refresh server browser on startup
User gets to see all available servers directly without having to refresh first.
This commit is contained in:
parent
33b588b42e
commit
c568995d56
@ -48,6 +48,13 @@ CBrowser::CBrowser(void)
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
static bool bRefreshed = false;
|
||||||
|
if (!bRefreshed) // Refresh when created.
|
||||||
|
{
|
||||||
|
RefreshServerList();
|
||||||
|
bRefreshed = true;
|
||||||
|
}
|
||||||
|
|
||||||
UpdateHostingStatus();
|
UpdateHostingStatus();
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user