Skip to content

Commit

Permalink
this prevents us from retrying forever, spamming the log with warning…
Browse files Browse the repository at this point in the history
…s: replace the invalid data with an empty string

git-svn-id: https://xpra.org/svn/Xpra/trunk@20413 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 13, 2018
1 parent 291fb00 commit 1315248
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xpra/clipboard/clipboard_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ def unpack(clipboard, selection_data, _user_data=None):
log("unpack %s: %s", clipboard, type(selection_data))
global sanitize_gtkselectiondata
if selection_data and sanitize_gtkselectiondata(selection_data):
self._clipboard.set_text("", len=-1)
selection_data = None
if selection_data is None:
cb(None, None, None)
Expand Down

0 comments on commit 1315248

Please sign in to comment.