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

This commit is contained in:
Virtually Nick
2019-03-25 21:52:46 -04:00
parent d194e0754f
commit d3e00abab7

View File

@@ -185,12 +185,15 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
info.getImageMimetypes().toArray(new String[0])
));
// Send client timezone
writer.writeInstruction(
new GuacamoleInstruction(
"timezone",
info.getTimezone()
));
// Send client timezone, if available
String timezone = info.getTimezone();
if (timezone != null && !timezone.isEmpty()) {
writer.writeInstruction(
new GuacamoleInstruction(
"timezone",
info.getTimezone()
));
}
// Send args
writer.writeInstruction(new GuacamoleInstruction("connect", arg_values));