From d9628b27abfb090d854f77073bc9a1870d804164 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 19 Jul 2012 15:27:18 -0700 Subject: Hopefully make shutdown more clean. --- src/login/login.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/login') diff --git a/src/login/login.c b/src/login/login.c index 898729b..cd46049 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1031,12 +1031,6 @@ void mmo_auth_sync (void) return; } -void term_func (void) -{ - mmo_auth_sync (); -} - - // We want to sync the DB to disk as little as possible as it's fairly // resource intensive. therefore most player-triggerable events that // update the account DB will not immideately trigger a save. Instead @@ -4968,7 +4962,7 @@ void save_config_in_log (void) //-------------------------------------- // Function called at exit of the server //-------------------------------------- -void do_final (void) +void term_func (void) { int i, fd; @@ -5040,6 +5034,5 @@ int do_init (int argc, char **argv) ("The login-server is \033[1;32mready\033[0m (Server is listening on the port %d).\n\n", login_port); - atexit (do_final); return 0; } -- cgit v1.2.3-70-g09d2