jsbrowser(): Fix typo causing some images to not be downloaded

Fixes images missing in the Time recipe
This commit is contained in:
Kovid Goyal 2013-07-09 16:54:11 +05:30
parent ed55e76ff4
commit 26f86ca987

View File

@ -571,7 +571,7 @@ class Browser(QObject, FormsMixin):
ans[url] = raw
urls.discard(url)
while urls and time.time() - start_time > timeout and self.page.ready_state not in {'complete', 'completed'}:
while urls and time.time() - start_time < timeout and self.page.ready_state not in {'complete', 'completed'}:
get_resources()
if urls:
self.run_for_a_time(0.1)