XMLStream proxy_error event duplicated with connection_failed

SASL `no_auth` event duplicated with `failed_auth`
This commit is contained in:
Anton Ryzhov
2013-03-28 21:52:18 +04:00
parent 620ee9719f
commit a0c77c04a5
2 changed files with 2 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ class FeatureMechanisms(BasePlugin):
except sasl.SASLNoAppropriateMechanism:
log.error("No appropriate login method.")
self.xmpp.event("no_auth", direct=True)
self.xmpp.event("failed_auth", direct=True)
self.attempted_mechs = set()
return self.xmpp.disconnect()
except StringPrepError: