chore: reorder statement

This commit is contained in:
Rishabh Chawla 2020-09-19 09:55:02 +05:30
parent bf9ae831bd
commit 8131088db7
1 changed files with 1 additions and 1 deletions

View File

@ -313,6 +313,7 @@ class Watching {
const finalCallback = (err, compilation) => {
this.running = false;
this.compiler.running = false;
this.compiler.watching = undefined;
this.compiler.watchMode = false;
this.compiler.modifiedFiles = undefined;
this.compiler.removedFiles = undefined;
@ -321,7 +322,6 @@ class Watching {
const shutdown = () => {
this.compiler.cache.shutdown(err => {
this.compiler.hooks.watchClose.call();
this.compiler.watching = undefined;
const closeCallbacks = this._closeCallbacks;
this._closeCallbacks = undefined;
for (const cb of closeCallbacks) cb(err);