mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 03:22:10 +00:00
add a close() method to LockManager to allow clean shutdown
This commit is contained in:
parent
05163837cb
commit
ffe30962c9
1 changed files with 4 additions and 0 deletions
|
@ -70,3 +70,7 @@ module.exports = LockManager =
|
|||
action = (releaseLock) ->
|
||||
releaseLock()
|
||||
LockManager.runWithLock "HistoryLock:HealthCheck:host=#{HOST}:pid=#{PID}:random=#{RND}", action, callback
|
||||
|
||||
close: (callback) ->
|
||||
rclient.quit()
|
||||
rclient.once 'end', callback
|
||||
|
|
Loading…
Reference in a new issue