Skip to content

Commit

Permalink
fixup 6cec577: Compressible is a LargeStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 29, 2021
1 parent 6f632fb commit dd378ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpra/net/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,16 +552,16 @@ def encode(self, packet_in):
l = len(item)
except TypeError as e:
raise TypeError("invalid type %s in %s packet at index %s: %s" % (ti, packet[0], i, e)) from None
if issubclass(ti, LargeStructure):
packet[i] = item.data
continue
if issubclass(ti, Compressible):
#this is a marker used to tell us we should compress it now
#(used by the client for clipboard data)
item = item.compress()
packet[i] = item
ti = type(item)
#(it may now be a "Compressed" item and be processed further)
if issubclass(ti, LargeStructure):
packet[i] = item.data
continue
if issubclass(ti, (Compressed, LevelCompressed)):
#already compressed data (usually pixels, cursors, etc)
if not item.can_inline or l>INLINE_SIZE:
Expand Down

0 comments on commit dd378ef

Please sign in to comment.