From 27aac52e1f7ebcebf21418ea58a4548a785dafc0 Mon Sep 17 00:00:00 2001 From: Rai <58925163+rai68@users.noreply.github.com> Date: Sun, 11 Aug 2024 02:57:44 +1000 Subject: [PATCH] missed a thread Signed-off-by: Rai <58925163+rai68@users.noreply.github.com> --- pwnagotchi/ui/view.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index 54a9ab5f..7471a190 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -1,4 +1,5 @@ -import _thread +#import _thread +import threading import logging import random import time @@ -172,7 +173,8 @@ class View(object): plugins.on('ui_setup', self) if config['ui']['fps'] > 0.0: - _thread.start_new_thread(self._refresh_handler, ()) + threading.Thread(target=self._refresh_handler, args=(), name="UI Handler", daemon = True).start() + self._ignore_changes = () else: logging.warning("ui.fps is 0, the display will only update for major changes")