diff --git a/src/lib/agent/Peer.mjs b/src/lib/agent/Peer.mjs index c1feda8..67ed86b 100644 --- a/src/lib/agent/Peer.mjs +++ b/src/lib/agent/Peer.mjs @@ -134,7 +134,7 @@ class Peer extends EventEmitter { * @return {Promise} A Promise that resolves once the connection is closed. */ async destroy() { - // TODO: If this takes too long, we should just ignore it and move on + // TODO: If sending an end message takes too long, we should just ignore it and move on await this.send("end", "goodbye"); await this.connection.destroy(); this.emit("destroy");