forked from platformio/platformio-core
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
|
||||
-----------------
|
||||
|
||||
4.2.2 (2020-??-??)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fixed an issue when quitting from PlatformIO IDE does not shutdown PIO Home server
|
||||
|
||||
4.2.1 (2020-02-17)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -18,7 +18,7 @@ from twisted.web import static # pylint: disable=import-error
|
||||
|
||||
class WebRoot(static.File):
|
||||
def render_GET(self, request):
|
||||
if request.args.get("__shutdown__", False):
|
||||
if request.args.get(b"__shutdown__", False):
|
||||
reactor.stop()
|
||||
return "Server has been stopped"
|
||||
|
||||
|
Reference in New Issue
Block a user