We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370184b commit f911ff0Copy full SHA for f911ff0
src/SecureFolderFS.Sdk/ViewModels/Controls/LoginViewModel.cs
@@ -76,18 +76,22 @@ private async Task TryUnlockAsync(CancellationToken cancellationToken = default)
76
{
77
try
78
79
- var vaultLifecycle = await VaultService.VaultUnlocker.UnlockAsync(_vaultModel, _credentials, cancellationToken);
+ var vaultLifecycle =
80
+ await VaultService.VaultUnlocker.UnlockAsync(_vaultModel, _credentials, cancellationToken);
81
VaultUnlocked?.Invoke(this, new(vaultLifecycle));
82
83
-
84
}
85
catch (Exception ex)
86
87
// If failed, restart the process
88
// TODO: Above ^
89
_ = ex;
90
91
+ finally
92
+ {
93
+ _credentials.Dispose();
94
+ }
95
96
97
private async Task<bool> TryNextAuthAsync()
0 commit comments