Skip to content

Commit

Permalink
Merge branch 'resource-conflict' into merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Nov 9, 2011
2 parents ca29079 + c619157 commit 289d5f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core.js
Expand Up @@ -3311,7 +3311,11 @@ Strophe.Connection.prototype = {
{
if (elem.getAttribute("type") == "error") {
Strophe.info("SASL binding failed.");
this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
var conflict = elem.getElementsByTagName("conflict"), condition;
if (conflict.length > 0) {
condition = 'conflict';
}
this._changeConnectStatus(Strophe.Status.AUTHFAIL, condition);
return false;
}

Expand Down

0 comments on commit 289d5f1

Please sign in to comment.