GUACAMOLE-55: Do not attempt to send empty text blobs.
This commit is contained in:
1 parent
17e97e4311
commit
2a20aefa92
1 file changed
+2
-1
@@ -170,7 +170,8 @@ 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) {
|
||||||
array_writer.sendData(__encode_utf8(text));
|
if (text.length)
|
||||||
|
array_writer.sendData(__encode_utf8(text));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user