Hopefully fixed lockup bug.

This commit is contained in:
Storm Dragon
2025-08-16 19:57:19 -04:00
parent 022b9ba048
commit c86921ea65
5 changed files with 228 additions and 111 deletions

View File

@@ -81,6 +81,7 @@ class CallBacks(dict):
for func in self[callback]:
if callback is PYMUMBLE_CLBK_TEXTMESSAGERECEIVED:
thr = threading.Thread(target=func, args=pos_parameters)
thr.daemon = True # Fix critical memory leak - ensure thread cleanup
thr.start()
else:
func(*pos_parameters)