GUACAMOLE-422: Only send timezone if it's there.

This commit is contained in:
Virtually Nick committed 2019-04-22 11:53:09 -04:00
1 parent d194e0754f
commit d3e00abab7
1 file changed
+4 -1
@@ -185,12 +185,15 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
info.getImageMimetypes().toArray(new String[0]) info.getImageMimetypes().toArray(new String[0])
)); ));
// Send client timezone // Send client timezone, if available
String timezone = info.getTimezone();
if (timezone != null && !timezone.isEmpty()) {
writer.writeInstruction( writer.writeInstruction(
new GuacamoleInstruction( new GuacamoleInstruction(
"timezone", "timezone",
info.getTimezone() info.getTimezone()
)); ));
}
// Send args // Send args
writer.writeInstruction(new GuacamoleInstruction("connect", arg_values)); writer.writeInstruction(new GuacamoleInstruction("connect", arg_values));