From e6cafbd9c8168f7d698306e5b65f3d94a28f1e3c Mon Sep 17 00:00:00 2001 From: Fayeed Date: Mon, 28 Nov 2022 11:39:34 +0530 Subject: [PATCH] Reconnect fix --- connect/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/src/utils.ts b/connect/src/utils.ts index b1ff5ffe3..017915b7e 100644 --- a/connect/src/utils.ts +++ b/connect/src/utils.ts @@ -14,7 +14,7 @@ export async function checkPort(port: number) { mode: "no-cors", }); - if (res.status === 400) { + if (res.status === 400 || res.status === 0) { return port; } else { return null;