Skip to content

Commit

Permalink
Merge pull request #127 from perspect3vism/ad4m-reconnect-fix
Browse files Browse the repository at this point in the history
Reconnect fix for ad4m-connect
  • Loading branch information
jdeepee authored Dec 3, 2022
2 parents 5b65996 + e6cafbd commit c2cffca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2cffca

Please sign in to comment.