Skip to content

Commit

Permalink
Merge pull request metajack#70 from pelish8/master
Browse files Browse the repository at this point in the history
fixed _onDisconnectTimeout never trigger because maxRetries is undefined...
  • Loading branch information
Gordin committed Jul 4, 2014
2 parents 5cb6586 + 7aa7d29 commit 07f79ce
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 07f79ce

Please sign in to comment.