mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 19:04:29 +02:00
Fixed an issue when quitting from PlatformIO IDE does not shutdown PIO Home server
This commit is contained in:
@@ -6,6 +6,11 @@ Release Notes
|
|||||||
PlatformIO Core 4
|
PlatformIO Core 4
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
4.2.2 (2020-??-??)
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Fixed an issue when quitting from PlatformIO IDE does not shutdown PIO Home server
|
||||||
|
|
||||||
4.2.1 (2020-02-17)
|
4.2.1 (2020-02-17)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ from twisted.web import static # pylint: disable=import-error
|
|||||||
|
|
||||||
class WebRoot(static.File):
|
class WebRoot(static.File):
|
||||||
def render_GET(self, request):
|
def render_GET(self, request):
|
||||||
if request.args.get("__shutdown__", False):
|
if request.args.get(b"__shutdown__", False):
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
return "Server has been stopped"
|
return "Server has been stopped"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user