From 6b453db541c7a1a168dc22f26de3823d97e2e322 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 20 Aug 2007 00:12:53 +0000 Subject: Fix for bug #393, needs QA and backport git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7765 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine_select.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp index ef5f2071f..b87d2769d 100644 --- a/src/socketengine_select.cpp +++ b/src/socketengine_select.cpp @@ -144,10 +144,9 @@ int SelectEngine::DispatchEvents() { if (writeable[ev[i]->GetFd()]) { + writeable[ev[i]->GetFd()] = false; if (ev[i]) ev[i]->HandleEvent(EVENT_WRITE); - writeable[ev[i]->GetFd()] = false; - } else { -- cgit v1.2.3