reorder for thread cleanup

This commit is contained in:
David Rose 2007-08-01 23:22:33 +00:00
parent a44e8e3b30
commit a8ae4fa3f1

View File

@ -388,11 +388,10 @@ class ShowBase(DirectObject.DirectObject):
is closed cleanly, so that we free system resources, restore is closed cleanly, so that we free system resources, restore
the desktop and keyboard functionality, etc. the desktop and keyboard functionality, etc.
""" """
self.loader.destroy()
self.graphicsEngine.removeAllWindows()
if self.musicManager: if self.musicManager:
self.musicManager.shutdown() self.musicManager.shutdown()
self.loader.destroy()
self.graphicsEngine.removeAllWindows()
del self.win del self.win
del self.winList del self.winList