Small tweak to better deal with value caching

This commit is contained in:
2012-04-18 11:22:27 +01:00
parent 9a084d28a0
commit 4024887b58

View File

@@ -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