mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Go over 8010-8100 TCP ports when shutting down PIO Home server
This commit is contained in:
@ -106,12 +106,12 @@ def update_core_packages(only_check=False, silent=False):
|
|||||||
|
|
||||||
def shutdown_piohome_servers():
|
def shutdown_piohome_servers():
|
||||||
port = 8010
|
port = 8010
|
||||||
while port < 9000:
|
while port < 8100:
|
||||||
try:
|
try:
|
||||||
requests.get("http://127.0.0.1:%d?__shutdown__=1" % port)
|
requests.get("http://127.0.0.1:%d?__shutdown__=1" % port)
|
||||||
port += 1
|
|
||||||
except: # pylint: disable=bare-except
|
except: # pylint: disable=bare-except
|
||||||
return
|
pass
|
||||||
|
port += 1
|
||||||
|
|
||||||
|
|
||||||
def pioplus_call(args, **kwargs):
|
def pioplus_call(args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user