Added recursive retrieval for Bungees

This commit is contained in:
Jonathan Williams 2013-11-17 17:00:12 -08:00
parent 0fa953715e
commit 9ba122a4cb
2 changed files with 22 additions and 1 deletions

View File

@ -100,6 +100,17 @@ public class LobbyBalancerRepository
catch (Exception exception)
{
exception.printStackTrace();
try
{
Thread.sleep(10);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
return retrieveServerStatuses();
}
finally
{

View File

@ -181,7 +181,17 @@ public class PlayerCountRepository
catch (Exception exception)
{
exception.printStackTrace();
return false;
try
{
Thread.sleep(10);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
return updatePlayerCountInDatabase(players);
}
finally
{