mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-29 12:15:43 +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