Compare commits
2 Commits
c52e437f50
...
ae487a27e5
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | ae487a27e5 | |
Derrick Hammer | b98db98b6a |
|
@ -44,7 +44,7 @@ export class SwarmClient extends Client {
|
||||||
this._ready = undefined;
|
this._ready = undefined;
|
||||||
}
|
}
|
||||||
async start() {
|
async start() {
|
||||||
this._connectBackoff.run(() => this.init());
|
await this._connectBackoff.run(() => this.init());
|
||||||
this._connectBackoff.on("retry", (error) => {
|
this._connectBackoff.on("retry", (error) => {
|
||||||
this.logErr(error);
|
this.logErr(error);
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,7 +60,7 @@ export class SwarmClient extends Client {
|
||||||
}
|
}
|
||||||
|
|
||||||
async start(): Promise<void> {
|
async start(): Promise<void> {
|
||||||
this._connectBackoff.run(() => this.init());
|
await this._connectBackoff.run(() => this.init());
|
||||||
|
|
||||||
this._connectBackoff.on("retry", (error: any) => {
|
this._connectBackoff.on("retry", (error: any) => {
|
||||||
this.logErr(error);
|
this.logErr(error);
|
||||||
|
|
Loading…
Reference in New Issue