From 175d66c99497f9537e8a0d7f0ad522e79a0aa37c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 02:32:41 -0500 Subject: [PATCH] Revert "*Change ondestroy to onclose" This reverts commit 9d90468b8215168aad54c7c2c52713f8db59899f. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index eaf259e..a036137 100644 --- a/src/index.ts +++ b/src/index.ts @@ -95,7 +95,7 @@ export default class DHTFlood extends EventEmitter { async onopen() { self.emit("peer-open", peer); }, - async onclose() { + async ondestroy() { self.emit("peer-remove", peer); }, });