diff --git a/trezor_agent/factory.py b/trezor_agent/factory.py index fb97509..50da0f3 100644 --- a/trezor_agent/factory.py +++ b/trezor_agent/factory.py @@ -92,9 +92,8 @@ def load(loaders=None): device = loader() if device: device_list.extend(device) - break # stop polling if we found the device... - if len(device_list) == 1: # ...especialy when we need exactly one + if len(device_list) == 1: return device_list[0] msg = '{:d} devices found'.format(len(device_list))