reconnect bug fixed

This commit is contained in:
ingvar1995 2018-01-30 20:36:59 +03:00
parent 762eb89a46
commit 9b5d768819

View file

@ -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