diff options
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py index 731ddb10..745a7fc5 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py @@ -178,7 +178,13 @@ class CTRexAsyncClient(): self.connected = True - # sync all stats data as a baseline from the server + # first barrier - make sure async thread is up + rc = self.barrier() + if not rc: + self.disconnect() + return rc + + # second barrier - sync all stats data as a baseline from the server rc = self.barrier(baseline = True) if not rc: self.disconnect() |