remove useless checks
This commit is contained in:
@@ -60,10 +60,6 @@ class Weather(Thread):
|
||||
time.sleep(1)
|
||||
continue
|
||||
|
||||
# calculate the theoretical next try for an update
|
||||
if None != self.lastUpdateTried:
|
||||
earliestUpdate = self.lastUpdateTried + datetime.timedelta(minutes=2)
|
||||
|
||||
if None == self.lastUpdateTried or self.lastUpdateTried <= now:
|
||||
if True == self.provider.receiveWindData():
|
||||
self.nextUpdate = self.provider.updateTime
|
||||
Reference in New Issue
Block a user