Fix Peertube crash when stopping the BOSH proxy.

This commit is contained in:
John Livingston
2022-08-24 12:24:35 +02:00
parent de179e90d3
commit 507da6e042
2 changed files with 31 additions and 20 deletions

View File

@ -236,12 +236,12 @@ async function ensureProsodyNotRunning (options: RegisterServerOptions): Promise
return
}
logger.debug('Removing proxy route')
await disableProxyRoute(options)
logger.debug('Calling prosodyctl to stop the process')
const status = await prosodyCtl(options, 'stop')
logger.info(`ProsodyCtl command returned: ${status.message}`)
logger.debug('Removing proxy route')
await disableProxyRoute(options)
}
export {