From dcedcbed7b1bd69800143ee91cb423db00d6cd33 Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:57:44 -0400 Subject: [PATCH] revert change in devp2p --- packages/devp2p/examples/simple.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/devp2p/examples/simple.ts b/packages/devp2p/examples/simple.ts index 6226e099e4..817f5940f3 100644 --- a/packages/devp2p/examples/simple.ts +++ b/packages/devp2p/examples/simple.ts @@ -43,7 +43,5 @@ for (const bootnode of BOOTNODES) { } setTimeout(() => { - // After the timeout, destroy dpt - dpt.destroy() // NOTE: this does not seem to stop listening to peers, how to quit/exit? - // (client also calls `dpt.destroy()` in `rlpxserver` on `stop()`) + process.exit() }, TIMEOUT)