Skip to content

Commit

Permalink
Add wait on update error and let UI run (#24)
Browse files Browse the repository at this point in the history
Add wait on update error and let UI run
  • Loading branch information
nopara73 committed Jul 22, 2019
2 parents d68bb91 + bd51135 commit 54a991d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WalletWasabi/Services/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public void Start(TimeSpan period, Func<Task> executeIfBackendIncompatible, Func
{
await executeIfClientOutOfDate?.Invoke();
}
await Task.Delay(period, Stop.Token);
}
catch (ConnectionException ex)
{
Expand All @@ -78,6 +76,10 @@ public void Start(TimeSpan period, Func<Task> executeIfBackendIncompatible, Func
{
Logger.LogDebug<UpdateChecker>(ex);
}
finally
{
await Task.Delay(period, Stop.Token);
}
}
}
finally
Expand Down

0 comments on commit 54a991d

Please sign in to comment.