mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
@urbit/http-api: tweak resubscribe timing
This commit is contained in:
parent
1375a7fac1
commit
ccfc8fc456
@ -250,7 +250,8 @@ export class Urbit {
|
||||
}
|
||||
},
|
||||
onerror: (error) => {
|
||||
if(!(error instanceof FatalError) && this.errorCount++ < 5) {
|
||||
console.warn(error);
|
||||
if(!(error instanceof FatalError) && this.errorCount++ < 4) {
|
||||
this.onRetry && this.onRetry();
|
||||
return Math.pow(2, this.errorCount - 1) * 750;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user