mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
make sure shutdown only happens once
This commit is contained in:
parent
d3fa6b4a01
commit
d5478a8ebb
1 changed files with 4 additions and 3 deletions
|
@ -113,9 +113,10 @@ port = settings.internal.filestore.port or 3009
|
|||
host = settings.internal.filestore.host or "localhost"
|
||||
|
||||
beginShutdown = () ->
|
||||
appIsOk = false
|
||||
server.close()
|
||||
logger.log "server will stop accepting connections"
|
||||
if appIsOk
|
||||
appIsOk = false
|
||||
server.close()
|
||||
logger.log "server will stop accepting connections"
|
||||
|
||||
server.on "close", () ->
|
||||
logger.log "closed all connections"
|
||||
|
|
Loading…
Reference in a new issue