Fixed an issue when quitting from PlatformIO IDE does not shutdown PIO Home server

This commit is contained in:
Ivan Kravets
2020-02-18 00:03:23 +02:00
parent b8312d545c
commit 9fd0943b75
2 changed files with 6 additions and 1 deletions

View File

@ -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)
~~~~~~~~~~~~~~~~~~

View File

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