fix(mixins/Config): dont create multiple stop listeners

This commit is contained in:
Julien Fontanet
2021-11-18 16:41:46 +01:00
parent d7ee13f98d
commit f5c3bf72e5

View File

@@ -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) {