FIX: Make sure we write inside a lock.

This commit is contained in:
Guo Xiang Tan 2016-02-23 23:25:59 +08:00 committed by Robin Ward
parent 9de5c340b0
commit f2db1a27cf
1 changed files with 4 additions and 2 deletions

View File

@ -39,11 +39,13 @@ class PostgreSQLFallbackHandler
raise e
end
ensure
@mutex.synchronize do
@last_check = Time.zone.now
@running = false
end
end
end
end
private