misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-11-05 14:37:42 +01:00
parent cf8a4da9e7
commit 0830e0c74b
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -138,7 +138,7 @@ class Handler:
return render_template_string(STATUS_PAGE, title=pwnagotchi.name(),
message='Restart in %s mode ...' % mode)
finally:
_thread.start_new_thread(pwnagotchi.shutdown, (mode,))
_thread.start_new_thread(pwnagotchi.restart, (mode,))
# serve the PNG file with the display image
def ui(self):