reconnection bug fixed

This commit is contained in:
ingvar1995 2017-04-22 22:35:32 +03:00
parent 4f77e2c105
commit ac07cb529f
3 changed files with 1 additions and 2 deletions

View file

@ -141,4 +141,3 @@ class AV:
if state & TOXAV_FRIEND_CALL_STATE['ACCEPTING_A']: if state & TOXAV_FRIEND_CALL_STATE['ACCEPTING_A']:
self._calls[friend_number] |= 1 self._calls[friend_number] |= 1

View file

@ -88,6 +88,7 @@ class Profile(basecontact.BaseContact, Singleton):
if status is not None: if status is not None:
self._tox.self_set_status(status) self._tox.self_set_status(status)
elif not self._waiting_for_reconnection: elif not self._waiting_for_reconnection:
self._waiting_for_reconnection = True
QtCore.QTimer.singleShot(50000, self.reconnect) QtCore.QTimer.singleShot(50000, self.reconnect)
def set_name(self, value): def set_name(self, value):

View file

@ -137,4 +137,3 @@ class MultilineEdit(CenteredWidget):
def button_click(self): def button_click(self):
self.save(self.edit.toPlainText()) self.save(self.edit.toPlainText())
self.close() self.close()