Reset the roster on disconnect instead of replacing it.

This commit is contained in:
Lance Stout
2011-02-14 16:24:49 -05:00
parent a278f79bdb
commit e4f3b777f9
2 changed files with 25 additions and 1 deletions

View File

@@ -595,7 +595,7 @@ class BaseXMPP(XMLStream):
def _handle_disconnected(self, event):
"""When disconnected, reset the roster"""
self.roster = {}
self.roster.reset()
def _handle_stream_error(self, error):
self.event('stream_error', error)