Skip to content

Commit 0248bbc

Browse files
committed
Fix connetion
1 parent 2b83799 commit 0248bbc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/pages/RemoteProduct.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function RemoteProduct() {
139139
const progress: DiscoveryProgress = { total: ports.length, checked: 0, found: [] };
140140
setDiscovery({ ...progress });
141141

142-
const results = await Promise.allSettled(
142+
await Promise.allSettled(
143143
ports.map(async (port) => {
144144
if (abort.signal.aborted) return;
145145
const hostWithPort = `${host}:${port}`;
@@ -154,9 +154,8 @@ export function RemoteProduct() {
154154

155155
if (abort.signal.aborted) return;
156156

157-
// Check results
158-
const failedAll = results.every((r) => r.status === 'rejected');
159-
if (failedAll || progress.found.length === 0) {
157+
// Only error when zero servers were discovered
158+
if (progress.found.length === 0) {
160159
setFormError('No ECA servers found on ports 7777–7787. Check the host and password.');
161160
setFormConnecting(false);
162161
return;

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export default defineConfig({
1313
outDir: 'dist',
1414
},
1515
server: {
16-
port: 5180,
16+
port: 8080,
1717
},
1818
});

0 commit comments

Comments
 (0)