summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socketengine_select.cpp3
1 files changed, 1 insertions, 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
{