Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove pointless attempt at flow control optimization.

  • Loading branch information...
commit b338647e255ef658b9b033cd1a64ce400bd3ebca 1 parent abb9ea1
Tom Preston-Werner authored January 02, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/god/driver.rb
2  lib/god/driver.rb
@@ -82,7 +82,7 @@ def pop
82 82
         if @events.empty?
83 83
           raise ThreadError, "queue empty" if @shutdown
84 84
           @resource.wait
85  
-        else !@events.first.due?
  85
+        else
86 86
           delay = @events.first.at - Time.now
87 87
           @resource.wait(delay) if delay > 0
88 88
         end

0 notes on commit b338647

Please sign in to comment.
Something went wrong with that request. Please try again.