From 4e592df6d81882c944d4bb36b6e76cf9c8caee21 Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Tue, 5 Nov 2019 19:07:16 +0100
Subject: [PATCH] fix: fixed a bug which prevented rebooting

---
 pwnagotchi/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pwnagotchi/__init__.py b/pwnagotchi/__init__.py
index fac7d5c..148be7d 100644
--- a/pwnagotchi/__init__.py
+++ b/pwnagotchi/__init__.py
@@ -128,7 +128,7 @@ def reboot(mode=None):
         logging.warning("rebooting ...")
 
     if view.ROOT:
-        view.ROOT.on_reboot()
+        view.ROOT.on_rebooting()
         # give it some time to refresh the ui
         time.sleep(10)