Skip to content

Commit

Permalink
only exit if the token is invalid, not when missing
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 6, 2024
1 parent 6469e52 commit 8ef274e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xpra/client/mixins/mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ def iget(attrname, default_value=0):
log.error(f" expected {token:x}")
log.error(f" found {mmap_token:x}")
self.mmap_enabled = False
self.quit(ExitCode.MMAP_TOKEN_FAILURE)
return False
if token:
self.quit(ExitCode.MMAP_TOKEN_FAILURE)
return False
log.error(" mmap is disabled")
return True
log.info("enabled fast mmap transfers using %sB shared memory area", std_unit(self.mmap_size, unit=1024))
#the server will have a handle on the mmap file by now, safe to delete:
if not KEEP_MMAP_FILE:
Expand Down

0 comments on commit 8ef274e

Please sign in to comment.