Skip to content

Commit 08d3d21

Browse files
committed
Bypass the three-second wait on the initial connection
1 parent 9cb272f commit 08d3d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/ConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private void WaitForReclaimTimeout(Transport newTransport)
155155
: TimeSpan.FromSeconds(3.01);
156156

157157
// We're only affected by the reclaim timeout if we're switching USB transports.
158-
if (_device.LastActiveTransport == newTransport)
158+
if (_device.LastActiveTransport == newTransport || _device.LastActiveTransport == Transport.None)
159159
{
160160
_log.LogDebug(
161161
"{Transport} transport is already active. No need to wait for reclaim.",

0 commit comments

Comments
 (0)