Skip to content

Commit

Permalink
Name pack casted in _unbox to fix IronPython bug. Fixed #337
Browse files Browse the repository at this point in the history
  • Loading branch information
comrumino committed Jul 14, 2019
1 parent 5f55bcd commit cbbbcab
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 @@ -293,7 +293,7 @@ def _unbox(self, package): # boxing
if label == consts.LABEL_LOCAL_REF:
return self._local_objects[value]
if label == consts.LABEL_REMOTE_REF:
id_pack = value # so value is a id_pack
id_pack = (str(value[0]), value[1], value[2]) # so value is a id_pack
if id_pack in self._proxy_cache:
proxy = self._proxy_cache[id_pack]
proxy.____refcount__ += 1 # if cached then remote incremented refcount, so sync refcount
Expand Down

0 comments on commit cbbbcab

Please # to comment.