From 0830e0c74b9395f1db791faa1ff716180802f1a1 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Tue, 5 Nov 2019 14:37:42 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/ui/web/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/ui/web/handler.py b/pwnagotchi/ui/web/handler.py index 2b02130..d0db0e2 100644 --- a/pwnagotchi/ui/web/handler.py +++ b/pwnagotchi/ui/web/handler.py @@ -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):