From 654f2cca9d0a8066e586dba95cecb981d2c4e1b8 Mon Sep 17 00:00:00 2001 From: To Doan Ngoc Hai Date: Thu, 15 Feb 2024 16:55:28 +0200 Subject: [PATCH] gz-bridge: test sleep time for connection timeout --- src/modules/simulation/gz_bridge/GZBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/simulation/gz_bridge/GZBridge.cpp b/src/modules/simulation/gz_bridge/GZBridge.cpp index 6bfbee43dcdc..6e1b551a58ac 100644 --- a/src/modules/simulation/gz_bridge/GZBridge.cpp +++ b/src/modules/simulation/gz_bridge/GZBridge.cpp @@ -301,7 +301,7 @@ int GZBridge::task_spawn(int argc, char *argv[]) #if defined(ENABLE_LOCKSTEP_SCHEDULER) // lockstep scheduler wait for initial clock set before returning - int sleep_count_limit = 10000; + int sleep_count_limit = 20000; while ((instance->world_time_us() == 0) && sleep_count_limit > 0) { // wait for first clock message