tweak comment
This commit is contained in:
parent
a9a7320a1e
commit
61b830121e
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Peer extends EventEmitter {
|
||||||
* @return {Promise} A Promise that resolves once the connection is closed.
|
* @return {Promise} A Promise that resolves once the connection is closed.
|
||||||
*/
|
*/
|
||||||
async destroy() {
|
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.send("end", "goodbye");
|
||||||
await this.connection.destroy();
|
await this.connection.destroy();
|
||||||
this.emit("destroy");
|
this.emit("destroy");
|
||||||
|
|
Loading…
Reference in a new issue