lib/td/logger/td_logger.rb in td-logger-0.3.8 vs lib/td/logger/td_logger.rb in td-logger-0.3.9
- old
+ new
@@ -269,9 +269,10 @@
def finalize
close
end
+ require 'thread' # ConditionVariable
if ConditionVariable.new.method(:wait).arity == 1
# "WARNING: Running on Ruby 1.8. Ruby 1.9 is recommended."
require 'timeout'
def cond_wait(sec)
Timeout.timeout(sec) {