Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer e822ccfd12
*Update dist 2022-11-16 01:50:24 -05:00
Derrick Hammer 9d90468b82
*Change ondestroy to onclose 2022-11-16 01:50:04 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

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

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 ondestroy() { async onclose() {
self.emit("peer-remove", peer); self.emit("peer-remove", peer);
}, },
}); });