*Change ondestroy to onclose

This commit is contained in:
Derrick Hammer 2022-11-16 01:50:04 -05:00
parent 08dee10521
commit 9d90468b82
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() {
self.emit("peer-open", peer);
},
async ondestroy() {
async onclose() {
self.emit("peer-remove", peer);
},
});