Skip to content

Commit

Permalink
fixed _onDisconnectTimeout never trigger because maxRetries is undefi…
Browse files Browse the repository at this point in the history
…ned.
  • Loading branch information
Aleksandar Stevic committed May 13, 2014
1 parent cdfcf7e commit 7aa7d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bosh.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ Strophe.Bosh.prototype = {
}

// make sure we limit the number of retries
if (req.sends > this.maxRetries) {
if (req.sends > this._conn.maxRetries) {
this._conn._onDisconnectTimeout();
return;
}
Expand Down

0 comments on commit 7aa7d29

Please sign in to comment.