We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f266bff commit 420f335Copy full SHA for 420f335
LightBulb/ViewModels/MainViewModel.cs
@@ -25,9 +25,16 @@ UpdateService updateService
25
TimeSpan.FromHours(3),
26
async () =>
27
{
28
- var updateVersion = await updateService.CheckForUpdatesAsync();
29
- if (updateVersion is not null)
30
- await updateService.PrepareUpdateAsync(updateVersion);
+ try
+ {
+ var updateVersion = await updateService.CheckForUpdatesAsync();
31
+ if (updateVersion is not null)
32
+ await updateService.PrepareUpdateAsync(updateVersion);
33
+ }
34
+ catch
35
36
+ // Failure to update shouldn't crash the application
37
38
}
39
);
40
0 commit comments