diff --git a/src/lib/cloud-provider.js b/src/lib/cloud-provider.js index ce26082fcf4..70e656832e7 100644 --- a/src/lib/cloud-provider.js +++ b/src/lib/cloud-provider.js @@ -154,7 +154,9 @@ class CloudProvider { * @param {string} data The formatted message to send. */ _sendCloudData (data) { - this.connection.send(`${data}\n`); + if (this.connection) { + this.connection.send(`${data}\n`); + } } /**