Skip to content

Commit 9257602

Browse files
committed
Update and Wiki services can fire simultaneously
1 parent 286ae93 commit 9257602

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CompactGUI/Application.xaml.vb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ Partial Public Class Application
101101

102102
Await _host.StartAsync()
103103
Await SettingsViewModel.InitializeEnvironment()
104-
Await GetService(Of IUpdaterService).CheckForUpdate(SettingsHandler.AppSettings.EnablePreReleaseUpdates)
105-
Await GetService(Of IWikiService).GetUpdatedJSONAsync()
104+
105+
Dim UpdateTask = GetService(Of IUpdaterService).CheckForUpdate(SettingsHandler.AppSettings.EnablePreReleaseUpdates)
106+
Dim WikiTask = GetService(Of IWikiService).GetUpdatedJSONAsync()
107+
Await Task.WhenAll(UpdateTask, WikiTask)
106108

107109
End Sub
108110

0 commit comments

Comments
 (0)