Revert "*Change ondestroy to onclose"

This reverts commit 9d90468b82.
This commit is contained in:
Derrick Hammer 2022-11-16 02:32:41 -05:00
parent 175e263276
commit 175d66c994
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export default class DHTFlood extends EventEmitter {
async onopen() { async onopen() {
self.emit("peer-open", peer); self.emit("peer-open", peer);
}, },
async onclose() { async ondestroy() {
self.emit("peer-remove", peer); self.emit("peer-remove", peer);
}, },
}); });