summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-24 17:50:42 -0300
committershennetsind <ind@henn.et>2014-02-24 17:50:42 -0300
commit3c87f3a57294b41a0c3c6af953a37ffcad9c8f19 (patch)
treef87fa67eb3adfd0679c47d19c66eac005c1b3cce /src/common/socket.c
parent24551d9a2d9ba7e275c4dfe940a5acb941670cc5 (diff)
downloadhercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.gz
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.bz2
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.tar.xz
hercules-3c87f3a57294b41a0c3c6af953a37ffcad9c8f19.zip
Fixed console parse gm command crash on select commands
Also fixed an issue with socket flushing Signed-off-by: shennetsind <ind@henn.et>
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 9a61b0827..35d350e95 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -873,13 +873,13 @@ int do_sockets(int next)
if(!session[i])
continue;
-
+
+ RFIFOFLUSH(i);
// after parse, check client's RFIFO size to know if there is an invalid packet (too big and not parsed)
if (session[i]->rdata_size == session[i]->max_rdata) {
set_eof(i);
continue;
}
- RFIFOFLUSH(i);
}
#ifdef SHOW_SERVER_STATS