Skip to content

Commit

Permalink
Added comment to explain change for race condition reported in #558
Browse files Browse the repository at this point in the history
  • Loading branch information
comrumino committed Sep 25, 2024
1 parent 879cbdc commit 1c4c978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpyc/core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _unbox(self, package): # boxing
return self._local_objects[value]
if label == consts.LABEL_REMOTE_REF:
id_pack = (str(value[0]), value[1], value[2]) # so value is a id_pack
proxy = self._proxy_cache.get(id_pack)
proxy = self._proxy_cache.get(id_pack) # Ensure referents exist until we increment refcount issue #558
if proxy is not None:
proxy.____refcount__ += 1 # if cached then remote incremented refcount, so sync refcount
else:
Expand Down

0 comments on commit 1c4c978

Please sign in to comment.