summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-07-19 15:27:18 -0700
committerBen Longbons <b.r.longbons@gmail.com>2012-07-19 15:36:10 -0700
commitd9628b27abfb090d854f77073bc9a1870d804164 (patch)
tree185407724c8569d84d49f1c098faf38df0df88e4 /src/login
parentcf14f8379f9315859d2d829f40c219e04fdd88f5 (diff)
downloadtmwa-d9628b27abfb090d854f77073bc9a1870d804164.tar.gz
tmwa-d9628b27abfb090d854f77073bc9a1870d804164.tar.bz2
tmwa-d9628b27abfb090d854f77073bc9a1870d804164.tar.xz
tmwa-d9628b27abfb090d854f77073bc9a1870d804164.zip
Hopefully make shutdown more clean.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c9
1 files changed, 1 insertions, 8 deletions
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;
}