Skip to content

Commit

Permalink
avoid shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Jan 29, 2016
1 parent 17e6419 commit 48e534f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rest-core/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ def wait ps=promises, m=mutex
ps.clear
end
current_promises.each do |p|
next unless p.weakref_alive?
begin
p.wait
p.weakref_alive? && p.wait
rescue WeakRef::RefError # it's gc'ed after we think it's alive
end
end
Expand Down

0 comments on commit 48e534f

Please sign in to comment.