fix(app.js): Change config.maintenance to realtime.maintenance
This commit is contained in:
parent
ecb0533605
commit
3919d4fc0e
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -229,7 +229,7 @@ process.on('uncaughtException', function (err) {
|
|||
// install exit handler
|
||||
function handleTermSignals () {
|
||||
logger.info('hackmd has been killed by signal, try to exit gracefully...')
|
||||
config.maintenance = true
|
||||
realtime.maintenance = true
|
||||
// disconnect all socket.io clients
|
||||
Object.keys(io.sockets.sockets).forEach(function (key) {
|
||||
var socket = io.sockets.sockets[key]
|
||||
|
|
Loading…
Reference in a new issue