cisco_wifi_ctl.py: close connection after logout on 3504

This commit is contained in:
Chuck SmileyRekiere
2020-10-28 08:06:35 -06:00
parent c4efe40e3b
commit d420db9903

View File

@@ -1354,11 +1354,11 @@ def main():
try:
egg.sendline("logout")
logg.info("logout")
i = egg.expect([LOGOUTPROMPT, EXITPROMPT, CLOSEDBYREMOTE, CLOSEDCX,pexpect.TIMEOUT],timeout=3)
if i == 1:
egg.sendline("y")
logg.info("send close to the egg child process")
egg.close(force = True)
sleep(0.1)
except:
logg.info("exception is logout")
logg.info("exception on logout")