Skip to content

Commit dc352a9

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
dist/lib updates
1 parent 0b99b0c commit dc352a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/web/pubnub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5009,7 +5009,7 @@
50095009
if (response && response.headers['retry-after'] !== undefined)
50105010
delay = parseInt(response.headers['retry-after'], 10);
50115011
if (delay === -1)
5012-
delay = Math.min(Math.pow(2, attempt), this.maximumDelay);
5012+
delay = Math.min(this.minimumDelay * Math.pow(2, attempt), this.maximumDelay);
50135013
return (delay + Math.random()) * 1000;
50145014
},
50155015
validate() {

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/retry-policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class RetryPolicy {
171171
if (response && response.headers['retry-after'] !== undefined)
172172
delay = parseInt(response.headers['retry-after'], 10);
173173
if (delay === -1)
174-
delay = Math.min(Math.pow(2, attempt), this.maximumDelay);
174+
delay = Math.min(this.minimumDelay * Math.pow(2, attempt), this.maximumDelay);
175175
return (delay + Math.random()) * 1000;
176176
},
177177
validate() {

0 commit comments

Comments
 (0)