don't stop polling for more devices as having more than one inserted raises more problems and we need to keep the check

nistp521
Dominik Kozaczko 8 years ago
parent cf27b345f6
commit 7d2c649e83
No known key found for this signature in database
GPG Key ID: 599FD881A588E191

@ -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))

Loading…
Cancel
Save