Skip to content

Commit

Permalink
Fix DevServer#close doesn't close all resources
Browse files Browse the repository at this point in the history
  • Loading branch information
wawjr3d committed Jul 17, 2020
1 parent 56d62a5 commit cec3253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/server/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export default class DevServer extends Server {

protected async close(): Promise<void> {
await this.stopWatcher()
await this.staticPathsWorker.end()
if (this.hotReloader) {
await this.hotReloader.stop()
}
Expand Down

0 comments on commit cec3253

Please sign in to comment.