mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
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
|
// install exit handler
|
||||||
function handleTermSignals () {
|
function handleTermSignals () {
|
||||||
logger.info('hackmd has been killed by signal, try to exit gracefully...')
|
logger.info('hackmd has been killed by signal, try to exit gracefully...')
|
||||||
config.maintenance = true
|
realtime.maintenance = true
|
||||||
// disconnect all socket.io clients
|
// disconnect all socket.io clients
|
||||||
Object.keys(io.sockets.sockets).forEach(function (key) {
|
Object.keys(io.sockets.sockets).forEach(function (key) {
|
||||||
var socket = io.sockets.sockets[key]
|
var socket = io.sockets.sockets[key]
|
||||||
|
|
Loading…
Reference in a new issue