diff options
Diffstat (limited to 'slixmpp/features/feature_mechanisms')
-rw-r--r-- | slixmpp/features/feature_mechanisms/mechanisms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slixmpp/features/feature_mechanisms/mechanisms.py b/slixmpp/features/feature_mechanisms/mechanisms.py index 663bfe57..3cbb83f2 100644 --- a/slixmpp/features/feature_mechanisms/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/mechanisms.py @@ -233,7 +233,9 @@ class FeatureMechanisms(BasePlugin): self.xmpp.authenticated = True self.xmpp.features.add('mechanisms') self.xmpp.event('auth_success', stanza, direct=True) - raise RestartStream() + # Restart the stream + self.xmpp.init_parser() + self.xmpp.send_raw(self.xmpp.stream_header) def _handle_fail(self, stanza): """SASL authentication failed. Disconnect and shutdown.""" |