fix(app.js): Change config.maintenance to realtime.maintenance

This commit is contained in:
BoHong Li 2017-04-13 02:00:27 +08:00 committed by Raccoon Li
parent ecb0533605
commit 3919d4fc0e

2
app.js
View file

@ -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]