From 61b830121e04abb82b1de1ef19e717eaa6759991 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 9 Jan 2022 17:47:19 +0000 Subject: [PATCH] tweak comment --- src/lib/agent/Peer.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");