message splitting and some bug fixes

This commit is contained in:
ingvar1995 2016-03-16 18:15:55 +03:00
parent 113176e37b
commit e28e625b42
3 changed files with 37 additions and 8 deletions

View file

@ -119,13 +119,20 @@ class Toxygen(object):
# initializing callbacks
init_callbacks(self.tox, self.ms, self.tray)
# bootstrap
for data in node_generator():
self.tox.bootstrap(*data)
self.msleep(10000)
while not self.tox.self_get_connection_status() and not self.stop:
try:
for data in node_generator():
self.tox.bootstrap(*data)
self.msleep(5000)
except:
pass
self.msleep(10000)
while not self.tox.self_get_connection_status() and not self.stop:
try:
for data in node_generator():
self.tox.bootstrap(*data)
except:
pass
finally:
self.msleep(5000)
class ToxIterateThread(QtCore.QThread):