From f5c3bf72e55221c3e493e9ccd2a68c1e18cd1371 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 18 Nov 2021 16:41:46 +0100 Subject: [PATCH] fix(mixins/Config): dont create multiple stop listeners --- @xen-orchestra/mixins/Config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@xen-orchestra/mixins/Config.js b/@xen-orchestra/mixins/Config.js index 23291d24d..c498be832 100644 --- a/@xen-orchestra/mixins/Config.js +++ b/@xen-orchestra/mixins/Config.js @@ -13,7 +13,7 @@ module.exports = class Config { const watchers = (this._watchers = new Set()) app.hooks.on('start', async () => { - app.hooks.on( + app.hooks.once( 'stop', await watch({ appDir, appName, ignoreUnknownFormats: true }, (error, config) => { if (error != null) {