mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-14 04:13:14 -04:00
Added try-catches to schedulers to identify errors
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user