Reset logic moved to within method.
This commit is contained in:
@@ -192,10 +192,8 @@ public class HourlyJobThread implements Runnable {
|
||||
try {
|
||||
|
||||
// Reset zone availability at 1am
|
||||
// or if we run out of hotZones
|
||||
|
||||
if (LocalDateTime.now().getHour() == 01 ||
|
||||
ZoneManager.availableHotZones() == 0)
|
||||
if (LocalDateTime.now().getHour() == 01)
|
||||
ZoneManager.resetHotZones();
|
||||
|
||||
// Use the same hotZone this hour up and until
|
||||
|
||||
Reference in New Issue
Block a user