Skip to content

Commit

Permalink
don't add the same digest value multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 26, 2022
1 parent 1911fae commit 9e5491c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/client/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ def make_hello_base(self):
for handler in self.challenge_handlers:
digest = handler.get_digest()
if digest:
capabilities["digest"].append(digest)
digests = capabilities.setdefault("digest", [])
if digest not in digests:
digests.append(digest)
capabilities.update(FilePrintMixin.get_caps(self))
capabilities.update({
"uuid" : self.uuid,
Expand Down

0 comments on commit 9e5491c

Please sign in to comment.