Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 175d66c994
Revert "*Change ondestroy to onclose"
This reverts commit 9d90468b82.
2022-11-16 02:32:41 -05:00
Derrick Hammer 175e263276
Revert "*Update dist"
This reverts commit e822ccfd12.
2022-11-16 02:32:41 -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() {
self.emit("peer-open", peer);
},
async onclose() {
async ondestroy() {
self.emit("peer-remove", peer);
},
});

View File

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