Python atexit handlers are called in reverse order.
Fix things so the stats dump happens last. --HG-- extra : convert_revision : ea842dbcbb77dd1c715c4e5b57d2470e558c4265
This commit is contained in:
parent
f776ec84c1
commit
f800fddcea
1 changed files with 3 additions and 1 deletions
|
@ -138,9 +138,11 @@ def simulate(*args, **kwargs):
|
|||
def curTick():
|
||||
return internal.event.cvar.curTick
|
||||
|
||||
# Python exit handlers happen in reverse order. We want to dump stats last.
|
||||
atexit.register(internal.stats.dump)
|
||||
|
||||
# register our C++ exit callback function with Python
|
||||
atexit.register(internal.core.doExitCleanup)
|
||||
atexit.register(internal.stats.dump)
|
||||
|
||||
# This loops until all objects have been fully drained.
|
||||
def doDrain(root):
|
||||
|
|
Loading…
Reference in a new issue