mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-19 15:53:45 +08:00
params: fix cleanup hang on exit (#38562)
This commit is contained in:
@@ -117,6 +117,7 @@ class Params:
|
||||
path = ensure_bytes(d)
|
||||
self.p = params_create(path, len(path))
|
||||
self._finalizer = weakref.finalize(self, params_destroy, self.p)
|
||||
self._finalizer.atexit = False # daemon threads can still be using live Params handles during interpreter shutdown
|
||||
self.d = d
|
||||
|
||||
def __reduce__(self):
|
||||
|
||||
Reference in New Issue
Block a user