diff --git a/lib/redistat/mixins/synchronize.rb b/lib/redistat/mixins/synchronize.rb index 170485e..b421b03 100644 --- a/lib/redistat/mixins/synchronize.rb +++ b/lib/redistat/mixins/synchronize.rb @@ -14,7 +14,8 @@ module Redistat def thread_safe monitor.synchronize do - @thread_safe ||= false + return @thread_safe unless @thread_safe.nil? + @thread_safe = false end end