Skip to content

Commit

Permalink
handle async port manager methods
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Nov 7, 2023
1 parent 41fb70f commit a900bcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli/lib/DevServerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ class DevServerManager {
}
});

if (!portManagerHasActiveServers()) {
stopPortManagerServer();
const hasActiveServers = await portManagerHasActiveServers();

if (!hasActiveServers) {
await stopPortManagerServer();
}
}
}
Expand Down

0 comments on commit a900bcf

Please sign in to comment.