summaryrefslogtreecommitdiff
path: root/src/login_sql/login.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/login_sql/login.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/login_sql/login.c')
-rw-r--r--src/login_sql/login.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 394586f4f..8898bfa2a 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -474,12 +474,13 @@ void mmo_db_close(void) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmpsql);
}
- delete_session(fd);
+ do_close(fd);
}
}
mysql_close(&mysql_handle);
ShowStatus("close DB connect....\n");
- delete_session(login_fd);
+ if (login_fd > 0)
+ do_close(login_fd);
}
//-----------------------------------------------------