From 3a329b04f9ac87e93e34d3595cdaab796c6edcd9 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 22 Sep 2003 09:55:00 +0000 Subject: [PATCH] Added the uptimeEnder to world.flushers instead of just running it atexit. --- plugins/FunDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FunDB.py b/plugins/FunDB.py index 4fe3a51d8..bcf22a489 100755 --- a/plugins/FunDB.py +++ b/plugins/FunDB.py @@ -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()