mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
handle too faste error
This commit is contained in:
parent
e8d019b9a5
commit
b70be873d6
1 changed files with 5 additions and 3 deletions
|
@ -121,10 +121,12 @@ class scanThread (threading.Thread):
|
|||
loop = 0
|
||||
while loop < (1024 * 256):
|
||||
res = pandora.task_status(res["taskId"])
|
||||
status = res["status"]
|
||||
|
||||
if status != "WAITING":
|
||||
break
|
||||
# Handle responde from Pandora
|
||||
if (res['success']==True)
|
||||
status=res["status"])
|
||||
if status != "WAITING":
|
||||
break
|
||||
|
||||
# wait a little
|
||||
time.sleep(0.1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue