mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Registered upkeep with atexit.
This commit is contained in:
parent
da8ee2a758
commit
a169b64740
@ -69,8 +69,6 @@ def flush():
|
|||||||
for f in flushers:
|
for f in flushers:
|
||||||
f()
|
f()
|
||||||
|
|
||||||
atexit.register(flush)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ignore(tempvars)
|
ignore(tempvars)
|
||||||
except NameError:
|
except NameError:
|
||||||
@ -90,6 +88,8 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
debug.msg(msg, 'verbose')
|
debug.msg(msg, 'verbose')
|
||||||
return collected
|
return collected
|
||||||
|
|
||||||
|
atexit.register(upkeep)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
def superReload(oldmodule):
|
def superReload(oldmodule):
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user