From 907856a941423cd2e4e1ca4fa8e112e5e7c69db4 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Fri, 10 Feb 2017 22:24:19 +0100 Subject: [PATCH] Global name standalone not defined (#1030). Correct only the error message at the end of Glances but not the main cause of the issue (Webserver interface is not displayed) --- glances/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glances/__init__.py b/glances/__init__.py index c9876636..d4ec8d00 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -70,11 +70,11 @@ def __signal_handler(signal, frame): def end(): """Stop Glances.""" - if core.is_standalone(): + if core.is_standalone() and not WINDOWS: # Stop the standalone (CLI) standalone.end() logger.info("Stop Glances (with CTRL-C)") - elif core.is_client(): + elif core.is_client() and not WINDOWS: # Stop the client client.end() logger.info("Stop Glances client (with CTRL-C)") @@ -82,7 +82,7 @@ def end(): # Stop the server server.end() logger.info("Stop Glances server (with CTRL-C)") - elif core.is_webserver(): + elif core.is_webserver() or (core.is_standalone() and WINDOWS): # Stop the Web server webserver.end() logger.info("Stop Glances web server(with CTRL-C)")