FIX: Make sure we write inside a lock.
This commit is contained in:
parent
9de5c340b0
commit
f2db1a27cf
|
@ -39,8 +39,10 @@ class PostgreSQLFallbackHandler
|
|||
raise e
|
||||
end
|
||||
ensure
|
||||
@last_check = Time.zone.now
|
||||
@running = false
|
||||
@mutex.synchronize do
|
||||
@last_check = Time.zone.now
|
||||
@running = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue