reconnection - clear peers list

This commit is contained in:
ingvar1995 2018-07-21 17:16:01 +03:00
parent 6538cedcf2
commit 820b5a0253
2 changed files with 9 additions and 0 deletions

View file

@ -51,6 +51,9 @@ class GroupChat(contact.Contact, ToxSave):
return peers[0]
def remove_all_peers_except_self(self):
self._peers = self._peers[:1]
def get_peers(self):
return self._peers[:]