fall back to ipv4 for local nodes if no ipv6 connection is available

This commit is contained in:
j 2014-05-22 16:20:40 +02:00
commit dc2121293e
9 changed files with 151 additions and 72 deletions

View file

@ -38,11 +38,8 @@ class Downloads(Thread):
import item.scan
item.scan.run_scan()
while self._running:
if state.online:
self.download_next()
time.sleep(0.5)
else:
time.sleep(20)
self.download_next()
time.sleep(0.5)
def join(self):
self._running = False