*Change ondestroy to onclose
This commit is contained in:
parent
08dee10521
commit
9d90468b82
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue