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)")