diff --git a/src/index.ts b/src/index.ts index eb5caae..be13b5b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,10 @@ export default class DHT { } ready(): Promise { + if (this._inited) { + return Promise.resolve(); + } + this._inited = true; return this.fillConnections(); }