diff --git a/dist/index.js b/dist/index.js index 7f1ebef..3b5cb31 100644 --- a/dist/index.js +++ b/dist/index.js @@ -72,7 +72,7 @@ class DHTFlood extends events_1.default { async onopen() { self.emit("peer-open", peer); }, - async ondestroy() { + async onclose() { self.emit("peer-remove", peer); }, });