From 73eee018d301031a212fe3c8a8127b84c2b580ac Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 19 Nov 2007 12:18:26 +0000 Subject: Fixes causing lost 'events' in queue dispatch git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@596277 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Serializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/sys/Serializer.cpp') diff --git a/cpp/src/qpid/sys/Serializer.cpp b/cpp/src/qpid/sys/Serializer.cpp index a82982a0c8..86f901aa78 100644 --- a/cpp/src/qpid/sys/Serializer.cpp +++ b/cpp/src/qpid/sys/Serializer.cpp @@ -58,7 +58,7 @@ bool SerializerBase::running() { void SerializerBase::wait() { Mutex::ScopedLock l(lock); - lock.wait(); + if (state == IDLE) lock.wait(); } void SerializerBase::run() { -- cgit v1.2.1