mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
clean up unused variable, convert setting to number
This commit is contained in:
parent
a7a161556f
commit
b0f0fb64ac
1 changed files with 4 additions and 4 deletions
|
@ -121,8 +121,8 @@ shutdownCleanly = (signal) ->
|
|||
|
||||
Settings.shutDownInProgress = false
|
||||
if Settings.shutdownDrainTimeWindow?
|
||||
Settings.forceDrainMsDelay = parseInt(Settings.shutdownDrainTimeWindow, 10)
|
||||
logger.log shutdownDrainTimeWindow: Settings.shutdownDrainTimeWindow,"shutdownDrainTimeWindow enabled"
|
||||
shutdownDrainTimeWindow = parseInt(Settings.shutdownDrainTimeWindow, 10)
|
||||
logger.log shutdownDrainTimeWindow: shutdownDrainTimeWindow,"shutdownDrainTimeWindow enabled"
|
||||
for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT']
|
||||
process.on signal, ->
|
||||
if Settings.shutDownInProgress
|
||||
|
@ -130,8 +130,8 @@ if Settings.shutdownDrainTimeWindow?
|
|||
return
|
||||
else
|
||||
Settings.shutDownInProgress = true
|
||||
logger.log signal: signal, "received interrupt, starting drain over #{Settings.shutdownDrainTimeWindow} mins"
|
||||
DrainManager.startDrainTimeWindow(io, Settings.shutdownDrainTimeWindow)
|
||||
logger.log signal: signal, "received interrupt, starting drain over #{shutdownDrainTimeWindow} mins"
|
||||
DrainManager.startDrainTimeWindow(io, shutdownDrainTimeWindow)
|
||||
shutdownCleanly(signal)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue