From 3c87f3a57294b41a0c3c6af953a37ffcad9c8f19 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 24 Feb 2014 17:50:42 -0300 Subject: Fixed console parse gm command crash on select commands Also fixed an issue with socket flushing Signed-off-by: shennetsind --- src/common/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') 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 -- cgit v1.2.3-60-g2f50