From 494d0cb125c96ebcc1aaba4a4fcee1143d44df12 Mon Sep 17 00:00:00 2001 From: Bernhard Bablok Date: Thu, 19 Jan 2023 15:48:12 +0100 Subject: [PATCH] prevent reuse of a stopped thread --- displayio/_display.py | 1 + 1 file changed, 1 insertion(+) diff --git a/displayio/_display.py b/displayio/_display.py index da94fb2..241a0aa 100644 --- a/displayio/_display.py +++ b/displayio/_display.py @@ -394,6 +394,7 @@ class Display: elif not value and self._refresh_thread.is_alive(): # Stop the thread self._refresh_thread.join() + self._refresh_thread = None @property def brightness(self) -> float: -- 2.49.0