summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-05 18:05:07 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-05 18:05:07 +0100
commit557d4ba922dd89cbde2ca85e686ca408b9fdaa73 (patch)
treef894878d3d63d5a46dc019999df0ded47ce00b38 /src
parentc9ee23a0fd785b4314c29c5cc5326d572daa952f (diff)
socketengine_kqueue Remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/socketengines/socketengine_kqueue.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp
index 99d4236e9..07ea19d9d 100644
--- a/src/socketengines/socketengine_kqueue.cpp
+++ b/src/socketengines/socketengine_kqueue.cpp
@@ -243,12 +243,8 @@ int KQueueEngine::DispatchEvents()
const int bits_to_clr = FD_WANT_SINGLE_WRITE | FD_WANT_FAST_WRITE | FD_WRITE_WILL_BLOCK;
SetEventMask(eh, eh->GetEventMask() & ~bits_to_clr);
eh->HandleEvent(EVENT_WRITE);
-
- if (eh != GetRef(fd))
- // whoops, deleted out from under us
- continue;
}
- if (filter == EVFILT_READ)
+ else if (filter == EVFILT_READ)
{
ReadEvents++;
SetEventMask(eh, eh->GetEventMask() & ~FD_READ_WILL_BLOCK);