summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Connection.cpp')
-rw-r--r--cpp/src/Ice/Connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp
index 5387f1bf8c3..6868934d6a1 100644
--- a/cpp/src/Ice/Connection.cpp
+++ b/cpp/src/Ice/Connection.cpp
@@ -103,7 +103,7 @@ IceInternal::Connection::waitUntilFinished() const
{
IceUtil::Monitor<IceUtil::RecMutex>::Lock sync(*this);
- while(_transceiver)
+ while(_transceiver || _dispatchCount > 0)
{
wait();
}