Permalink
Browse files

Remove pointless attempt at flow control optimization.

  • Loading branch information...
1 parent abb9ea1 commit b338647e255ef658b9b033cd1a64ce400bd3ebca @mojombo mojombo committed Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/god/driver.rb
View
@@ -82,7 +82,7 @@ def pop
if @events.empty?
raise ThreadError, "queue empty" if @shutdown
@resource.wait
- else !@events.first.due?
+ else
delay = @events.first.at - Time.now
@resource.wait(delay) if delay > 0
end

0 comments on commit b338647

Please sign in to comment.