summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-04 22:51:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-04 22:51:22 +0000
commit219b3f7c8a33e78d60c6168b4a0575058779fcfe (patch)
tree036dd7c88cb878d1dd0638158eb6e9785f822724 /src/char_sql/char.c
parent4a07e75620d853ff61c5f29330eae86b2c1cb888 (diff)
downloadhercules-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_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index a301bb46f..f93db50af 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -3888,8 +3888,10 @@ void do_final(void) {
gm_account = 0;
}
- delete_session(login_fd);
- delete_session(char_fd);
+ if (login_fd > 0)
+ do_close(login_fd);
+ if (char_fd > 0)
+ do_close(char_fd);
char_db_->destroy(char_db_, NULL);
online_char_db->destroy(online_char_db, NULL);