diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-08-11 05:34:59 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-08-11 05:34:59 +0000 |
| commit | 04ab2e970ea5e1c1ace127bec7212cf665dd9b80 (patch) | |
| tree | f599d1d3fcf786ea32ac626063aedc519b293e07 /cpp/src/qpid/sys/DispatchHandle.cpp | |
| parent | 9a0521e5562ba6bf5c3468eb171c109e166cfa5d (diff) | |
| download | qpid-python-04ab2e970ea5e1c1ace127bec7212cf665dd9b80.tar.gz | |
Fix for re-entering DispatchHandle::processEvent more than once on disconnection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@802990 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/DispatchHandle.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/DispatchHandle.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/DispatchHandle.cpp b/cpp/src/qpid/sys/DispatchHandle.cpp index d65cd8a427..605edabc64 100644 --- a/cpp/src/qpid/sys/DispatchHandle.cpp +++ b/cpp/src/qpid/sys/DispatchHandle.cpp @@ -284,10 +284,7 @@ void DispatchHandle::processEvent(Poller::EventType type) { readableCallback(*this); writableCallback(*this); break; - case Poller::DISCONNECTED: { - ScopedLock<Mutex> lock(stateLock); - poller->unmonitorHandle(*this, Poller::INOUT); - } + case Poller::DISCONNECTED: if (disconnectedCallback) { disconnectedCallback(*this); } |
