GUACAMOLE-55: Do not attempt to send empty text blobs.

This commit is contained in:
Michael Jumper committed 2016-06-27 18:33:15 -07:00
1 parent 17e97e4311
commit 2a20aefa92
1 file changed
+1
@@ -170,6 +170,7 @@ Guacamole.StringWriter = function(stream) {
* @param {String} text The text to send. * @param {String} text The text to send.
*/ */
this.sendText = function(text) { this.sendText = function(text) {
if (text.length)
array_writer.sendData(__encode_utf8(text)); array_writer.sendData(__encode_utf8(text));
}; };