From a8dfeed8ffbc921c4efefdb448e73e11878857e4 Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Wed, 13 Nov 2024 13:30:50 +0000 Subject: [PATCH] f --- moler/device/proxy_pc2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moler/device/proxy_pc2.py b/moler/device/proxy_pc2.py index fbb5c7266..e87e0a8c9 100644 --- a/moler/device/proxy_pc2.py +++ b/moler/device/proxy_pc2.py @@ -13,6 +13,7 @@ import six import abc import platform +import time from moler.device.textualdevice import TextualDevice from moler.device.unixlocal import UnixLocal @@ -247,7 +248,8 @@ def on_connection_made(self, connection): self._prompt_detected = False # prompt not defined in SM self._set_state(PROXY_PC) self._detect_after_open_prompt(self._set_after_open_prompt) - self._detect_prompt_get_cmd() + if self._sleep_after_state_change is not None and self._sleep_after_state_change > 0: + time.sleep(self._sleep_after_state_change) def on_connection_lost(self, connection): """