mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +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
|
loop = 0
|
||||||
while loop < (1024 * 256):
|
while loop < (1024 * 256):
|
||||||
res = pandora.task_status(res["taskId"])
|
res = pandora.task_status(res["taskId"])
|
||||||
status = res["status"]
|
|
||||||
|
|
||||||
if status != "WAITING":
|
# Handle responde from Pandora
|
||||||
break
|
if (res['success']==True)
|
||||||
|
status=res["status"])
|
||||||
|
if status != "WAITING":
|
||||||
|
break
|
||||||
|
|
||||||
# wait a little
|
# wait a little
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue