Skip to content

Commit

Permalink
More defensive close.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jul 19, 2024
1 parent 4f25222 commit 6f36fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ Arguments:

debug("Cleaning up chokidar and server instances, if they exist.");
await this.eleventyServe.close();
await this.watcher.close();
await this.watcher?.close();
}

/**
Expand Down

0 comments on commit 6f36fe8

Please sign in to comment.