Skip to content

Commit 1406602

Browse files
authored
Ping instead of timeout
1 parent 66cce79 commit 1406602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Misc/layoutroot/run-helper.cmd.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ if %ERRORLEVEL% EQU 1 (
1717

1818
if %ERRORLEVEL% EQU 2 (
1919
echo "Runner listener exit with retryable error, re-launch runner in 5 seconds."
20-
timeout /t 5 /nobreak > NUL
20+
PING 1.1.1.1 -n 1 -w 5000 >NUL
2121
exit /b 1
2222
)
2323

2424
if %ERRORLEVEL% EQU 3 (
2525
rem Sleep 5 seconds to wait for the runner update process finish
2626
echo "Runner listener exit because of updating, re-launch runner in 5 seconds"
27-
timeout /t 5 /nobreak > NUL
27+
PING 1.1.1.1 -n 1 -w 5000 >NUL
2828
exit /b 1
2929
)
3030

3131
if %ERRORLEVEL% EQU 4 (
3232
rem Sleep 5 seconds to wait for the ephemeral runner update process finish
3333
echo "Runner listener exit because of updating, re-launch ephemeral runner in 5 seconds"
34-
timeout /t 5 /nobreak > NUL
34+
PING 1.1.1.1 -n 1 -w 5000 >NUL
3535
exit /b 1
3636
)
3737

0 commit comments

Comments
 (0)