reconnection - clear peers list
This commit is contained in:
parent
6538cedcf2
commit
820b5a0253
2 changed files with 9 additions and 0 deletions
|
|
@ -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[:]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue