Fetch big amount after internet connection is good

This commit is contained in:
Frisk 2018-07-12 15:44:57 +02:00
parent 408fc01a30
commit e0ec3ed064
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -712,6 +712,7 @@ class recent_changes_class(object):
if looped == False:
while 1: #recursed loop, check for connection (every 10 seconds) as long as three services are down, don't do anything else
if self.check_connection(looped=True):
recent_changes.fetch(amount=settings["limitrefetch"])
break
time.sleep(10)
return False