Skip to content

Commit

Permalink
remove assert: this allows us to still get a tray icon image when the…
Browse files Browse the repository at this point in the history
… server does something stupid like sending the tray with a weird encoding

git-svn-id: https://xpra.org/svn/Xpra/trunk@5628 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 28, 2014
1 parent e43a2c2 commit e9bf802
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/xpra/client/client_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def update_icon(self, width, height, coding, data):


def draw_region(self, x, y, width, height, coding, img_data, rowstride, packet_sequence, options, callbacks):
assert coding in ("rgb24", "rgb32", "png", "mmap", "webp"), "invalid encoding for tray data: %s" % coding
log("%s.draw_region%s", self, [x, y, width, height, coding, "%s bytes" % len(img_data), rowstride, packet_sequence, options, callbacks])

def after_draw_update_tray(success):
Expand Down

0 comments on commit e9bf802

Please sign in to comment.