mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
cleaner shutdown
This commit is contained in:
parent
e17fb67b08
commit
fcf157cdfc
@ -103,7 +103,9 @@ class Thread(ThreadBase):
|
||||
self.__dict__['ident'] = threadId
|
||||
|
||||
def __del__(self):
|
||||
if _thread:
|
||||
# On interpreter shutdown, the _thread module might have
|
||||
# already been cleaned up.
|
||||
if _thread and _thread._remove_thread_id:
|
||||
_thread._remove_thread_id(self.ident)
|
||||
|
||||
def start(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user