Skip to content

Commit

Permalink
[MTGOSDK/Core] RemoteClient: Fix ClickOnce update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Dec 7, 2023
1 parent 6555572 commit 83ca9e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MTGOSDK/src/Core/RemoteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public static async Task<bool> StartProcess()
// Note: This is a crude method of gauging the progress of the ClickOnce
// deployment without adding significant delay to normal startup.
//
if ((await WaitUntil(() => IsStarting, retries: 4 /* ~ 1 sec */ )) &&
(await WaitUntil(() => IsUpdating, retries: 12 /* ~ 3 sec */ )) &&
!(await WaitUntil(() => HasStarted, retries: 480 /* ~ 2 min */ )))
if ((await WaitUntil(() => IsStarting, retries: 4 /* ~ 1 sec */ )) ||
(await WaitUntil(() => IsUpdating, retries: 8 /* ~ 2 sec */ )) &&
!(await WaitUntil(() => HasStarted, retries: 1200 /* ~ 5 min */ )))
{
throw new SetupFailedException("The MTGO installation has failed.");
}
Expand Down

0 comments on commit 83ca9e0

Please sign in to comment.