From 9ffaeadb391064fe49a794cc54b932860e0f99d6 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 17:34:37 +0000 Subject: Made socket loop flush a users buffer if they still remain after processing each line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2350 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5a0d5b388..b59a0c53c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2402,7 +2402,14 @@ void ProcessUser(userrec* cu) // table, life is much easier (and FASTER) userrec* new_comp = fd_ref_table[currfd]; if ((currfd < 0) || (!fd_ref_table[currfd]) || (old_comp != new_comp)) + { return; + } + else + { + /* The user is still here, flush their buffer */ + current->FlushWriteBuf(); + } } } return; -- cgit v1.2.3