Skip to content

Commit

Permalink
return empty caps when disabled
Browse files Browse the repository at this point in the history
better compatibility with older versions
  • Loading branch information
totaam committed Mar 6, 2024
1 parent ab30027 commit e968d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/server/source/mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def get_caps(self) -> Dict[str,Any]:
sep = "." if self.mmap_client_namespace else "_"
mmap_caps : Dict[str, Any] = {}
caps : Dict [str, Any] = {"mmap" : mmap_caps}
if self.mmap_size<=0:
return caps
def mmapattr(name:str, value) -> None:
#easy: just send both for now
mmap_caps[name] = value
Expand Down

0 comments on commit e968d7f

Please sign in to comment.