diff --git a/src/advertisers/dht.ts b/src/advertisers/dht.ts index 43cc960..493aac8 100644 --- a/src/advertisers/dht.ts +++ b/src/advertisers/dht.ts @@ -18,7 +18,7 @@ const collaborate = (createEphemeralLibp2p: CreateEphemeralLibp2p, options: Opti const { stop, libp2p: ephemeral } = await createEphemeralLibp2p(provider) yield * scopedDht(ephemeral, options.scope).provide(dcid) if (stop != null) { - stop(ephemeral) + await stop(ephemeral) } }