Skip to content

Commit 9e86119

Browse files
committed
configure await to true everywhere
1 parent 3f71b3a commit 9e86119

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ private async void FlashpointSecurePlayer_Shown(object sender, EventArgs e) {
14111411
await ImportActiveXAsync(delegate (string text) {
14121412
ShowErrorFatal(text);
14131413
throw new ActiveXImportFailedException("An error occured while activating the ActiveX Import.");
1414-
});
1414+
}).ConfigureAwait(true);
14151415
} catch (InvalidTemplateException ex) {
14161416
// no need to exit here, error shown in interface
14171417
LogExceptionToLauncher(ex);
@@ -1517,7 +1517,7 @@ await ImportActiveXAsync(delegate (string text) {
15171517

15181518
// Start Secure Playback
15191519
try {
1520-
await StartSecurePlaybackAsync(templateElement).ConfigureAwait(false);
1520+
await StartSecurePlaybackAsync(templateElement).ConfigureAwait(true);
15211521
} catch (InvalidModeException ex) {
15221522
// no need to exit here, error shown in interface
15231523
LogExceptionToLauncher(ex);

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ public override void StopImport() {
942942
}
943943

944944
public async Task StopImportAsync() {
945-
await StopImportAsync(false).ConfigureAwait(false);
945+
await StopImportAsync(false).ConfigureAwait(true);
946946
}
947947

948948
public override void Activate(string templateName) {

FlashpointSecurePlayer/Shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ public static async Task DownloadFlashpointSecurePlayerSectionAsync(string name)
24742474
} catch {
24752475
try {
24762476
name = GetValidEXEConfigurationName(name);
2477-
await DownloadAsync("http://" + CONFIGURATION_DOWNLOAD_NAME + "/" + name + ".config").ConfigureAwait(false);
2477+
await DownloadAsync("http://" + CONFIGURATION_DOWNLOAD_NAME + "/" + name + ".config").ConfigureAwait(true);
24782478
} catch {
24792479
// fail silently
24802480
}

0 commit comments

Comments
 (0)