Skip to content

Commit

Permalink
workaround for older packet encoders
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 10, 2022
1 parent a003a9b commit beb34ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,10 @@ def parse_csc_modes(self, full_csc_modes):
#only override if values are specified:
log("parse_csc_modes(%s) current value=%s", full_csc_modes, self.full_csc_modes)
if full_csc_modes is not None and isinstance(full_csc_modes, dict):
self.full_csc_modes = typedict(full_csc_modes)
self.full_csc_modes = typedict()
#workaround for older packet encoders: (strings vs bytes nonsense)
for enc, csc_formats in full_csc_modes.items():
self.full_csc_modes[bytestostr(enc)] = tuple(bytestostr(v) for v in csc_formats)


def set_auto_refresh_delay(self, d):
Expand Down

0 comments on commit beb34ea

Please sign in to comment.