From f1c9f973f7f3be4b70bdd7dac6d467bd3a141f83 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Tue, 4 Jun 2024 14:19:41 +0100 Subject: [PATCH] refactor: Ensure default port value is reset --- src/lib/port-finder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/port-finder.ts b/src/lib/port-finder.ts index 741a5d93..245c3779 100644 --- a/src/lib/port-finder.ts +++ b/src/lib/port-finder.ts @@ -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; } ); } }