mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
FIX: Make sure we write inside a lock.
This commit is contained in:
parent
1253afdf95
commit
c344bd3fd1
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue