diff options
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r-- | lib/timeout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb index 20a594898f..63a629923d 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -71,7 +71,7 @@ module Timeout # a module method, so you can call it directly as Timeout.timeout(). def timeout(sec, klass = nil) #:yield: +sec+ return yield(sec) if sec == nil or sec.zero? - message = "execution expired" + message = "execution expired".freeze e = Error bl = proc do |exception| begin |