Compare commits
2 Commits
e822ccfd12
...
175d66c994
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 175d66c994 | |
Derrick Hammer | 175e263276 |
|
@ -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 onclose() {
|
async ondestroy() {
|
||||||
self.emit("peer-remove", peer);
|
self.emit("peer-remove", peer);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue