Skip to content

Commit 085e074

Browse files
committed
make this a catch/throw, not a finally
1 parent 6286184 commit 085e074

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,13 +854,15 @@ public async Task StartImportAsync(string templateName, BINARY_TYPE binaryType)
854854
if (ImportPaused) {
855855
throw new InvalidRegistryStateException("A timeout occured while starting the Import.");
856856
}
857-
} finally {
857+
} catch {
858858
kernelSession.Dispose();
859859
kernelSession = null;
860+
throw;
860861
}
861-
} finally {
862+
} catch {
862863
pathNames = null;
863864
ImportStarted = false;
865+
throw;
864866
}
865867
}
866868

0 commit comments

Comments
 (0)