summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-21 19:10:31 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-21 19:10:31 +0000
commit1441a347a96cffe355f66c33578c5976b9f379a8 (patch)
tree683d285b4299ddc527482bb71baac925fae48cea /src/common/socket.c
parente00521c627d42b772497ba55490bf2095f700458 (diff)
downloadhercules-1441a347a96cffe355f66c33578c5976b9f379a8.tar.gz
hercules-1441a347a96cffe355f66c33578c5976b9f379a8.tar.bz2
hercules-1441a347a96cffe355f66c33578c5976b9f379a8.tar.xz
hercules-1441a347a96cffe355f66c33578c5976b9f379a8.zip
- Improved a bit RFIFOFLUSH as suggested by Harbin.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8838 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index b5eda7b27..014ef9272 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -857,7 +857,7 @@ int do_parsepacket(void)
sd = session[i];
if(!sd)
continue;
- if ((sd->rdata_tick != 0) && DIFF_TICK(last_tick,sd->rdata_tick) > stall_time) {
+ if (sd->rdata_tick && DIFF_TICK(last_tick,sd->rdata_tick) > stall_time) {
ShowInfo ("Session #%d timed out\n", i);
sd->eof = 1;
}
@@ -876,7 +876,7 @@ int do_parsepacket(void)
continue;
}
}
- RFIFOHEAD(i);
+ RFIFOHEAD(i);
RFIFOFLUSH(i);
}
return 0;