From ac07cb529f4991bb67d3d428421e4afbc2eca913 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 22 Apr 2017 22:35:32 +0300 Subject: [PATCH] reconnection bug fixed --- toxygen/calls.py | 1 - toxygen/profile.py | 1 + toxygen/widgets.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/toxygen/calls.py b/toxygen/calls.py index 16cef47..2b700d7 100644 --- a/toxygen/calls.py +++ b/toxygen/calls.py @@ -141,4 +141,3 @@ class AV: if state & TOXAV_FRIEND_CALL_STATE['ACCEPTING_A']: self._calls[friend_number] |= 1 - diff --git a/toxygen/profile.py b/toxygen/profile.py index 3f48cc9..eda76bf 100644 --- a/toxygen/profile.py +++ b/toxygen/profile.py @@ -88,6 +88,7 @@ class Profile(basecontact.BaseContact, Singleton): if status is not None: self._tox.self_set_status(status) elif not self._waiting_for_reconnection: + self._waiting_for_reconnection = True QtCore.QTimer.singleShot(50000, self.reconnect) def set_name(self, value): diff --git a/toxygen/widgets.py b/toxygen/widgets.py index f83e02c..ff441ed 100644 --- a/toxygen/widgets.py +++ b/toxygen/widgets.py @@ -137,4 +137,3 @@ class MultilineEdit(CenteredWidget): def button_click(self): self.save(self.edit.toPlainText()) self.close() -