From 502ce49f69ff5ba5563388e6dc951f68779d2fc4 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 1 Nov 2016 13:59:53 +0000 Subject: [PATCH] tweak persistent_login recipe to not reconnect on exit --- recipes/1.Login/persistent_login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/1.Login/persistent_login.py b/recipes/1.Login/persistent_login.py index bbb378b..ecdcdbf 100644 --- a/recipes/1.Login/persistent_login.py +++ b/recipes/1.Login/persistent_login.py @@ -80,5 +80,6 @@ try: client.run_forever() except KeyboardInterrupt: if client.connected: + logged_on_once = False LOG.info("Logout") client.logout()