From: Bernhard Bablok Date: Thu, 19 Jan 2023 14:48:12 +0000 (+0100) Subject: prevent reuse of a stopped thread X-Git-Tag: 0.10.3^2 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/494d0cb125c96ebcc1aaba4a4fcee1143d44df12 prevent reuse of a stopped thread --- 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: