Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 committed Feb 26, 2021
1 parent dcbc9ee commit c707032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PyCall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ end
# queue to try again later when we'll eventually be on the main thread.
function _pydecref_eventually(po)
if Threads.threadid()==1
return pydecref(po)
pydecref(po)
else
finalizer(_pydecref_eventually, po)
return nothing
end
return nothing
end

PyPtr(o::PyObject) = getfield(o, :o)
Expand Down

0 comments on commit c707032

Please sign in to comment.