XMLStream proxy_error
event duplicated with connection_failed
SASL `no_auth` event duplicated with `failed_auth`
This commit is contained in:
parent
620ee9719f
commit
a0c77c04a5
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -610,6 +610,7 @@ class XMLStream(object):
|
|||
lines = resp.split('\r\n')
|
||||
if '200' not in lines[0]:
|
||||
self.event('proxy_error', resp)
|
||||
self.event('connection_failed', direct=True)
|
||||
log.error('Proxy Error: %s', lines[0])
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue