]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/_display.py
prevent reuse of a stopped thread
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _display.py
index 41d53d152971bbf149d57bd1c4caff5667a019ec..241a0aa7ccb9fcc73ed4c5631aed8fbdefb40e05 100644 (file)
@@ -41,7 +41,7 @@ from ._constants import (
     BACKLIGHT_PWM,
 )
 
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
 
 displays = []
@@ -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: