summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-08 03:00:13 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-08 03:00:13 +0000
commit1d3965a7c67156d705a16abb22aa999fd188808c (patch)
tree7903c4dffdf8dcbcdcbffd4135590d25746449a9 /src/login_sql
parenta333f75d696e02eb0835da87dbccad0fd3ba5242 (diff)
downloadhercules-1d3965a7c67156d705a16abb22aa999fd188808c.tar.gz
hercules-1d3965a7c67156d705a16abb22aa999fd188808c.tar.bz2
hercules-1d3965a7c67156d705a16abb22aa999fd188808c.tar.xz
hercules-1d3965a7c67156d705a16abb22aa999fd188808c.zip
Added alive packet sending to SQL char and login
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@934 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r--src/login_sql/login.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index d7f91a20a..25df5310d 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -629,6 +629,10 @@ int char_anti_freeze_system(int tid, unsigned int tick, int id, int data) {
// printf("char_anti_freeze_system: server #%d '%s', flag: %d.\n", i, server[i].name, server_freezeflag[i]);
if (server_freezeflag[i]-- < 1) {// Char-server anti-freeze system. Counter. 5 ok, 4...0 freezed
session[server_fd[i]]->eof = 1;
+ } else {
+ // send alive packet to check connection
+ WFIFOW(server_fd[i],0) = 0x2718;
+ WFIFOSET(server_fd[i],2);
}
}
}