summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/console/trex_console.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-12-06 08:11:42 -0500
committerimarom <imarom@cisco.com>2015-12-06 08:11:42 -0500
commit026f949fbafbb00fd7a21f3d84a632f5745003ea (patch)
tree5b23a41769b81c4ec9b7e1d29b4db181eebfdebf /scripts/automation/trex_control_plane/console/trex_console.py
parent23e1f07edcd8289f09a1477c416ce260d1a0a804 (diff)
ZMQ bug - connect / disconnect fron another thread on pyhton (not safe !)
fixed and more hardening
Diffstat (limited to 'scripts/automation/trex_control_plane/console/trex_console.py')
-rwxr-xr-xscripts/automation/trex_control_plane/console/trex_console.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/console/trex_console.py b/scripts/automation/trex_control_plane/console/trex_console.py
index 73f4f612..9d855f98 100755
--- a/scripts/automation/trex_control_plane/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/console/trex_console.py
@@ -153,6 +153,7 @@ class TRexConsole(TRexGeneralCmd):
self.__dict__[name] = getattr(self.trex_console, name)
def postcmd(self, stop, line):
+
if self.stateless_client.is_connected():
self.prompt = "TRex > "
else: