Skip to content

Commit 3789145

Browse files
Trottaduh95
andauthored
Update lib/internal/inspector/_inspect.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent aa15223 commit 3789145

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/inspector/_inspect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ async function portIsFree(host, port, timeout = 9999) {
8888
setTimeout(timeout).then(() => ac.abort());
8989

9090
const asyncIterator = setInterval(retryDelay);
91-
while (await asyncIterator.next()) {
91+
while (true) {
92+
await asyncIterator.next();
9293
if (signal.aborted) {
9394
throw new StartupError(
9495
`Timeout (${timeout}) waiting for ${host}:${port} to be free`);

0 commit comments

Comments
 (0)