fix deadlock at exit
This commit is contained in:
parent
197032bd70
commit
9f2e1596fd
|
|
@ -51,6 +51,9 @@ class Loader(DirectObject):
|
|||
|
||||
def destroy(self):
|
||||
self.ignore(self.hook)
|
||||
# Temp condition for old Panda.
|
||||
if hasattr(loader, "stopThreads"):
|
||||
self.loader.stopThreads()
|
||||
del self.base
|
||||
del self.loader
|
||||
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||
is closed cleanly, so that we free system resources, restore
|
||||
the desktop and keyboard functionality, etc.
|
||||
"""
|
||||
self.loader.destroy()
|
||||
self.graphicsEngine.removeAllWindows()
|
||||
|
||||
if self.musicManager:
|
||||
|
|
|
|||
Loading…
Reference in New Issue