Fix exception when toggling USB interfaces.

This commit is contained in:
Dain Nilsson 2022-11-09 13:13:57 +01:00
parent ea0d7928ba
commit 8d3aaa0ba2
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -57,7 +57,7 @@ class ManagementNode(RpcNode):
connection_types = [
t
for t in [SmartCardConnection, OtpConnection, FidoConnection]
if ifaces.supports_connection(t)
if t.usb_interface in ifaces
]
self.session.close()