Skip to content

Commit 1160d51

Browse files
committed
fix: OathSession not clearing KeyCollector on disposal
1 parent 0c7f916 commit 1160d51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Oath/OathSession.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ protected override void Dispose(bool disposing)
127127
{
128128
if (disposing)
129129
{
130-
return;
130+
KeyCollector = null;
131+
base.Dispose(disposing);
131132
}
132-
133-
KeyCollector = null;
134-
base.Dispose(disposing);
135133
}
136134
}
137135
}

0 commit comments

Comments
 (0)