mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
fix #812
This commit is contained in:
parent
5a20d07fb8
commit
3a8b4d4258
1 changed files with 18 additions and 18 deletions
|
@ -465,22 +465,22 @@ class DongleWaitingDialog(QThread):
|
|||
if BTCHIP:
|
||||
waitDialog = DongleWaitingDialog()
|
||||
|
||||
# Tickle the UI a bit while waiting
|
||||
class DongleWaitQT(DongleWait):
|
||||
def __init__(self, dongle):
|
||||
self.dongle = dongle
|
||||
# Tickle the UI a bit while waiting
|
||||
class DongleWaitQT(DongleWait):
|
||||
def __init__(self, dongle):
|
||||
self.dongle = dongle
|
||||
|
||||
def waitFirstResponse(self, timeout):
|
||||
customTimeout = 0
|
||||
while customTimeout < timeout:
|
||||
try:
|
||||
response = self.dongle.waitFirstResponse(200)
|
||||
return response
|
||||
except USBError, e:
|
||||
if e.backend_error_code == -7:
|
||||
QApplication.processEvents()
|
||||
customTimeout = customTimeout + 100
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
raise e
|
||||
def waitFirstResponse(self, timeout):
|
||||
customTimeout = 0
|
||||
while customTimeout < timeout:
|
||||
try:
|
||||
response = self.dongle.waitFirstResponse(200)
|
||||
return response
|
||||
except USBError, e:
|
||||
if e.backend_error_code == -7:
|
||||
QApplication.processEvents()
|
||||
customTimeout = customTimeout + 100
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
raise e
|
||||
|
|
Loading…
Add table
Reference in a new issue