diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-27 20:21:27 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-27 20:21:27 +0000 |
commit | 6e4aed4b6a3bd62895a0f83bf2f422681ef217c4 (patch) | |
tree | c9aef0ceeab7ab2d64bdd1a13d620b36ecb06270 /src | |
parent | d037edba1e53cc78a2a79bc4dc1fae6d013e589d (diff) | |
download | hercules-6e4aed4b6a3bd62895a0f83bf2f422681ef217c4.tar.gz hercules-6e4aed4b6a3bd62895a0f83bf2f422681ef217c4.tar.bz2 hercules-6e4aed4b6a3bd62895a0f83bf2f422681ef217c4.tar.xz hercules-6e4aed4b6a3bd62895a0f83bf2f422681ef217c4.zip |
Altered socket code to do a graceful connection shutdown when exiting.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12251 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/common/socket.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/socket.c b/src/common/socket.c index b7d99fd6f..ac6846cb9 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -1073,10 +1073,9 @@ void socket_final(void) aFree(access_deny); #endif - for (i = 1; i < fd_max; i++) { + for( i = 1; i < fd_max; i++ ) if(session[i]) - delete_session(i); - } + do_close(i); // session[0] のダミーデータを削除 aFree(session[0]->rdata); |