Skip to content

Commit

Permalink
doh
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 28, 2023
1 parent e342ec7 commit c3e5a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/net/mmap_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ def init_server_mmap(mmap_filename:str, mmap_size=0):
try:
import mmap
if not WIN32:
assert sys.platform=="win32"
actual_mmap_size = os.path.getsize(mmap_filename)
if mmap_size and actual_mmap_size!=mmap_size:
log.warn("Warning: expected mmap file '%s' of size %i but got %i",
mmap_filename, mmap_size, actual_mmap_size)
mmap_area = mmap.mmap(f.fileno(), mmap_size)
else:
assert sys.platform=="win32"
if mmap_size==0:
log.error("Error: client did not supply the mmap area size")
log.error(" try updating your client version?")
Expand Down

0 comments on commit c3e5a3b

Please sign in to comment.