reconnect bug fixed
This commit is contained in:
parent
762eb89a46
commit
9b5d768819
@ -870,8 +870,11 @@ class Profile(basecontact.BaseContact, Singleton):
|
|||||||
Recreate tox instance
|
Recreate tox instance
|
||||||
:param restart: method which calls restart and returns new tox instance
|
:param restart: method which calls restart and returns new tox instance
|
||||||
"""
|
"""
|
||||||
for friend in self._contacts:
|
for contact in self._contacts:
|
||||||
self.friend_exit(friend.number)
|
if type(contact) is Friend:
|
||||||
|
self.friend_exit(contact.number)
|
||||||
|
else:
|
||||||
|
self.leave_gc(contact.number)
|
||||||
self._call.stop()
|
self._call.stop()
|
||||||
del self._call
|
del self._call
|
||||||
del self._tox
|
del self._tox
|
||||||
|
Loading…
Reference in New Issue
Block a user