From e26d929d232340cb5742bc597b020a4b209761f8 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 28 Jul 2008 16:45:26 +0000 Subject: Refactor of EpollPoller to make PollerHandler lifecycle easier git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680395 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Dispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/sys/Dispatcher.cpp') diff --git a/cpp/src/qpid/sys/Dispatcher.cpp b/cpp/src/qpid/sys/Dispatcher.cpp index 3f901737fd..02a62c8e66 100644 --- a/cpp/src/qpid/sys/Dispatcher.cpp +++ b/cpp/src/qpid/sys/Dispatcher.cpp @@ -339,7 +339,7 @@ void DispatchHandle::doDelete() { } } // If we're not then do it right away - deferDelete(); + delete this; } void DispatchHandle::processEvent(Poller::EventType type) { @@ -433,7 +433,7 @@ void DispatchHandle::processEvent(Poller::EventType type) { break; } } - deferDelete(); + delete this; } }} -- cgit v1.2.1