Skip to content

Commit

Permalink
fix hang if op finishes before we wait for it
Browse files Browse the repository at this point in the history
  • Loading branch information
lwoggardner committed Feb 9, 2012
1 parent fb2e767 commit b4f727b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zkruby/rubyio.rb
Expand Up @@ -296,7 +296,7 @@ def wait_value()
end
else
mutex.synchronize do
cv.wait()
cv.wait() unless defined?(@result)
end
end

Expand Down

0 comments on commit b4f727b

Please sign in to comment.