mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:11:17 +08:00
FIX: Make sure we write inside a lock.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user