From f65ab58c88444479dcad86d83d7f7cb40b26fbd4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 18 Nov 2018 23:53:47 +0200 Subject: [PATCH] Go over 8010-8100 TCP ports when shutting down PIO Home server --- platformio/managers/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio/managers/core.py b/platformio/managers/core.py index 0ea1cb15..514bac5b 100644 --- a/platformio/managers/core.py +++ b/platformio/managers/core.py @@ -106,12 +106,12 @@ def update_core_packages(only_check=False, silent=False): def shutdown_piohome_servers(): port = 8010 - while port < 9000: + while port < 8100: try: requests.get("http://127.0.0.1:%d?__shutdown__=1" % port) - port += 1 except: # pylint: disable=bare-except - return + pass + port += 1 def pioplus_call(args, **kwargs):