Revert "fix(gateway): refine process termination and wait logic on retry" (#754)
This commit is contained in:
@@ -137,7 +137,7 @@ export async function waitForPortFree(port: number, timeoutMs = 30000, signal?:
|
||||
while (Date.now() - start < timeoutMs) {
|
||||
if (signal?.aborted) {
|
||||
logger.debug(`waitForPortFree: aborted while waiting for port ${port}`);
|
||||
throw new Error(`waitForPortFree: aborted while waiting for port ${port}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const available = await new Promise<boolean>((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user