Added the uptimeEnder to world.flushers instead of just running it atexit.

This commit is contained in:
Jeremy Fincher 2003-09-22 09:55:00 +00:00
parent a1da1ba14d
commit 3a329b04f9

View File

@ -141,7 +141,7 @@ class FunDB(callbacks.Privmsg):
started = int(world.startedAt) started = int(world.startedAt)
cursor.execute("""INSERT INTO uptime VALUES (%s, NULL)""", started) cursor.execute("""INSERT INTO uptime VALUES (%s, NULL)""", started)
self.db.commit() self.db.commit()
atexit.register(uptimeEnder(started)) world.flushers.append(uptimeEnder(started))
def die(self): def die(self):
self.db.commit() self.db.commit()