mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:01:13 +08:00
FIX: Make sure we write inside a lock.
This commit is contained in:
@ -39,8 +39,10 @@ class PostgreSQLFallbackHandler
|
|||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
@last_check = Time.zone.now
|
@mutex.synchronize do
|
||||||
@running = false
|
@last_check = Time.zone.now
|
||||||
|
@running = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user