Skip to content

Commit

Permalink
refactor: Ensure default port value is reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Siobhan committed Jun 4, 2024
1 parent 39b85aa commit f1c9f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/port-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ class PortFinder {
} )
.finally( () => {
// Ensure port finder cycles through newly reclaimed ports by removing
// from #unavailablePorts list and resetting #searchPort.
// from #unavailablePorts list and resetting #openPort.
this.#unavailablePorts = this.#unavailablePorts.filter(
( unavailablePort ) => unavailablePort !== port
);
this.#searchPort = DEFAULT_PORT;
this.#openPort = DEFAULT_PORT;
} );
}
}
Expand Down

0 comments on commit f1c9f97

Please sign in to comment.