*Prevent ready from running fillConnections twice
This commit is contained in:
parent
35eed2a157
commit
377b9548cf
|
@ -31,6 +31,10 @@ export default class DHT {
|
|||
}
|
||||
|
||||
ready(): Promise<void> {
|
||||
if (this._inited) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
this._inited = true;
|
||||
return this.fillConnections();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue