Skip to content

Commit d8351e3

Browse files
authored
Use local ping
1 parent 1406602 commit d8351e3

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-
PING 1.1.1.1 -n 1 -w 5000 >NUL
20+
ping 127.0.0.1 -n 6 -w 1000 >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-
PING 1.1.1.1 -n 1 -w 5000 >NUL
27+
ping 127.0.0.1 -n 6 -w 1000 >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-
PING 1.1.1.1 -n 1 -w 5000 >NUL
34+
ping 127.0.0.1 -n 6 -w 1000 >NUL
3535
exit /b 1
3636
)
3737

0 commit comments

Comments
 (0)