diff --git a/lib/timeout.rb b/lib/timeout.rb index 4659ec3279..6e7adbd259 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -77,7 +77,7 @@ module Timeout end def expired?(now) - now >= @deadline and !done? + now >= @deadline end def interrupt