more fixes for the pickle error.

This commit is contained in:
Storm Dragon
2025-11-23 18:37:21 -05:00
parent 77a3aae5a4
commit 87553bdc38
4 changed files with 23 additions and 5 deletions

View File

@@ -126,8 +126,10 @@ class driver(screenDriver):
"default", # fontfamily
]
) # end attribute )
# Use threading instead of multiprocessing to avoid pickle issues
# with self.env (which contains unpicklable file handles)
self.env["runtime"]["ProcessManager"].add_custom_event_thread(
self.update_watchdog, multiprocess=True
self.update_watchdog, multiprocess=False
)
def get_curr_screen(self):