mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Added the uptimeEnder to world.flushers instead of just running it atexit.
This commit is contained in:
parent
a1da1ba14d
commit
3a329b04f9
@ -141,7 +141,7 @@ class FunDB(callbacks.Privmsg):
|
||||
started = int(world.startedAt)
|
||||
cursor.execute("""INSERT INTO uptime VALUES (%s, NULL)""", started)
|
||||
self.db.commit()
|
||||
atexit.register(uptimeEnder(started))
|
||||
world.flushers.append(uptimeEnder(started))
|
||||
|
||||
def die(self):
|
||||
self.db.commit()
|
||||
|
Loading…
Reference in New Issue
Block a user