mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
Recover on ConnectionFailure of stale device nodes
This commit is contained in:
parent
bb973bb508
commit
67c6db5db7
@ -185,7 +185,15 @@ class DevicesNode(RpcNode):
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
with self._get_state:
|
||||
return super().__call__(*args, **kwargs)
|
||||
try:
|
||||
return super().__call__(*args, **kwargs)
|
||||
except ConnectionException as e:
|
||||
raise ChildResetException(f"{e}")
|
||||
|
||||
def close(self):
|
||||
self._list_state = 0
|
||||
self._device_mapping = {}
|
||||
super().close()
|
||||
|
||||
@action(closes_child=False)
|
||||
def scan(self, *ignored):
|
||||
|
Loading…
Reference in New Issue
Block a user