diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-04 22:51:22 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-04 22:51:22 +0000 |
commit | 219b3f7c8a33e78d60c6168b4a0575058779fcfe (patch) | |
tree | 036dd7c88cb878d1dd0638158eb6e9785f822724 /src/char | |
parent | 4a07e75620d853ff61c5f29330eae86b2c1cb888 (diff) | |
download | hercules-219b3f7c8a33e78d60c6168b4a0575058779fcfe.tar.gz hercules-219b3f7c8a33e78d60c6168b4a0575058779fcfe.tar.bz2 hercules-219b3f7c8a33e78d60c6168b4a0575058779fcfe.tar.xz hercules-219b3f7c8a33e78d60c6168b4a0575058779fcfe.zip |
- Removed delete_session from socket.h since it shouldn't be used by them.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9955 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index 22dd81d94..54fa75c68 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4278,8 +4278,10 @@ void do_final(void) { if(gm_account) aFree(gm_account); if(char_dat) aFree(char_dat); - delete_session(login_fd); - delete_session(char_fd); + if (login_fd > 0) + do_close(login_fd); + if (char_fd > 0) + do_close(char_fd); #ifdef ENABLE_SC_SAVING status_final(); |