Skip to content

Commit

Permalink
Only retry every 90 minutes to avoid problems caused by api limits
Browse files Browse the repository at this point in the history
  • Loading branch information
tommaier123 committed Jul 10, 2024
1 parent 8008d39 commit f899d03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion XBatteryStatus/MyApplicationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ private void CheckSoftwareUpdate()
}
UpdateTimer.Stop();
}
catch (Exception e) { LogError(e); }
catch (Exception e)
{
SoftwareUpdateTimer.Interval = 90 * 60000;
LogError(e);
}
}

async private void FindBleController()
Expand Down

0 comments on commit f899d03

Please sign in to comment.