From 9ba122a4cbc4c22decbd549c3361b36291acf49f Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sun, 17 Nov 2013 17:00:12 -0800 Subject: [PATCH] Added recursive retrieval for Bungees --- .../lobbyBalancer/LobbyBalancerRepository.java | 11 +++++++++++ .../bungee/playerCount/PlayerCountRepository.java | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancerRepository.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancerRepository.java index e01b52f0f..01d38ea1e 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancerRepository.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancerRepository.java @@ -100,6 +100,17 @@ public class LobbyBalancerRepository catch (Exception exception) { exception.printStackTrace(); + + try + { + Thread.sleep(10); + } + catch (InterruptedException e) + { + e.printStackTrace(); + } + + return retrieveServerStatuses(); } finally { diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCountRepository.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCountRepository.java index a1f55d581..8e7cc9588 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCountRepository.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCountRepository.java @@ -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 {