Skip to content

Commit

Permalink
Update lib/internal/inspector/_inspect.js
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Trott and aduh95 committed May 30, 2021
1 parent aa15223 commit 3789145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/inspector/_inspect.js
Expand Up @@ -88,7 +88,8 @@ async function portIsFree(host, port, timeout = 9999) {
setTimeout(timeout).then(() => ac.abort());

const asyncIterator = setInterval(retryDelay);
while (await asyncIterator.next()) {
while (true) {
await asyncIterator.next();
if (signal.aborted) {
throw new StartupError(
`Timeout (${timeout}) waiting for ${host}:${port} to be free`);
Expand Down

0 comments on commit 3789145

Please sign in to comment.