message splitting and some bug fixes
This commit is contained in:
parent
113176e37b
commit
e28e625b42
3 changed files with 37 additions and 8 deletions
17
src/main.py
17
src/main.py
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue