diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-05 15:34:58 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-05 15:34:58 +0000 |
commit | 804644fc009146a302af05848ec3ef3390a3dbcc (patch) | |
tree | d03ce2a4e321a15fa1cd948e380160652c2cf9d6 /src | |
parent | fdb354ff2dc7d5f59e6dc4a32d76c72315798200 (diff) | |
download | hercules-804644fc009146a302af05848ec3ef3390a3dbcc.tar.gz hercules-804644fc009146a302af05848ec3ef3390a3dbcc.tar.bz2 hercules-804644fc009146a302af05848ec3ef3390a3dbcc.tar.xz hercules-804644fc009146a302af05848ec3ef3390a3dbcc.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@467 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/login/login.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/login/login.c b/src/login/login.c index e55e9e3c5..08f91768b 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -3867,7 +3867,8 @@ int flush_timer(int tid, unsigned int tick, int id, int data){ //-------------------------------------- void do_final(void) { int i, fd; - + printf("Terminating...\n"); + fflush(stdout); mmo_auth_sync(); if(auth_dat) free(auth_dat); @@ -3881,7 +3882,7 @@ void do_final(void) { memset(&server[i], 0, sizeof(struct mmo_char_server)); close(fd); delete_session(fd); - if(session[fd]->session_data) free(session[fd]->session_data); + if(session[fd]) free(session[fd]); } } close(login_fd); @@ -3891,6 +3892,7 @@ void do_final(void) { if(log_fp) fclose(log_fp); + printf("Finished.\n"); } //------------------------------ |