Added try-catches to schedulers to identify errors

This commit is contained in:
Treeku
2014-06-18 08:06:27 +01:00
parent b44ddd3b31
commit 97af15a747
20 changed files with 558 additions and 406 deletions
+5 -1
View File
@@ -65,7 +65,11 @@ public class WeatherService {
currentWeatherMap.put(planet, defaultWeather);
scheduler.scheduleAtFixedRate(() -> {
runWeatherCycle(planet);
try {
runWeatherCycle(planet);
} catch (Exception e) {
e.printStackTrace();
}
}, 30, 30, TimeUnit.MINUTES);
}