Skip to content

Commit f899d03

Browse files
committed
Only retry every 90 minutes to avoid problems caused by api limits
1 parent 8008d39 commit f899d03

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

XBatteryStatus/MyApplicationContext.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ private void CheckSoftwareUpdate()
181181
}
182182
UpdateTimer.Stop();
183183
}
184-
catch (Exception e) { LogError(e); }
184+
catch (Exception e)
185+
{
186+
SoftwareUpdateTimer.Interval = 90 * 60000;
187+
LogError(e);
188+
}
185189
}
186190

187191
async private void FindBleController()

0 commit comments

Comments
 (0)