@ -171,6 +171,7 @@ class DHT extends EventEmitter {
}
destroy () {
if (this.destroyed) return
this.destroyed = true
this._io.destroy()
clearInterval(this._tickInterval)
@ -201,6 +201,7 @@ class IO {
send (buffer, peer) {
if (this._ctx.destroyed) return
this.socket.send(buffer, 0, buffer.length, peer.port, peer.host)