Skip to content

Commit fbd0e2b

Browse files
committed
remove ping-pong incase of auto tunnel
1 parent bdf170e commit fbd0e2b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/commander/server.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,15 @@ command
5454

5555
try {
5656
await tasks.run(ctx);
57-
if (ctx.build && ctx.build.id) {
57+
if (ctx.build && ctx.build.id && !ctx.autoTunnelStarted) {
5858
startPingPolling(ctx);
5959
}
6060
if (ctx.options.fetchResults && ctx.build && ctx.build.id) {
6161
startPolling(ctx, '', false, '')
6262
}
6363

64-
// await ctx.client.getScreenshotData("567890", false, ctx.log, "755#a5ac6a67-289a-427d-b004-7dfff6c3484b#fanniemae-stage", 'smartui-bbf5b47005');
65-
6664

6765
} catch (error) {
68-
// Log the error in a human-readable format
69-
// ctx.log.debug(util.inspect(error, { showHidden: false, depth: null }));
70-
71-
// console.log(`Json Error: ${JSON.stringify(error, null, 2)}`);
72-
// if (error?.message.includes('ENOTFOUND')) {
73-
// ctx.log.error('Error: Network error occurred while fetching build status while polling. Please check your connection and try again.');
74-
// } else {
75-
// // Log the error in a human-readable format
76-
// ctx.log.debug(util.inspect(error, { showHidden: false, depth: null }));
77-
// ctx.log.error(`Error fetching build status while polling: ${JSON.stringify(error)}`);
78-
// }
7966
console.error('Error during server execution:', error);
8067
process.exit(1);
8168
}

0 commit comments

Comments
 (0)