From 7972cc32495597ac411a51a40d41e0bb42f80a44 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 28 Dec 2005 20:22:07 +0000 Subject: New system for client exits using CullList seems stable, needs testing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2681 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 2398ff8fe..1acbb6547 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -283,11 +283,9 @@ bool DoBackgroundUserStuff(time_t TIME) if ((curr) && (curr->fd != 0)) /* XXX - why are we checking fd != 0? --w00t */ { - int currfd = curr->fd; // we don't check the state of remote users. if (IS_LOCAL(curr)) { - curr->FlushWriteBuf(); if (curr->GetWriteError() != "") { log(DEBUG,"InspIRCd: write error: %s",curr->GetWriteError().c_str()); @@ -329,6 +327,7 @@ bool DoBackgroundUserStuff(time_t TIME) curr->lastping = 0; curr->nping = TIME+curr->pingmax; // was hard coded to 120 } + curr->FlushWriteBuf(); } } } -- cgit v1.2.3