summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/OutgoingAsync.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Ice/OutgoingAsync.cpp b/cpp/src/Ice/OutgoingAsync.cpp
index 33ac9dee0f5..eee5b3215c2 100644
--- a/cpp/src/Ice/OutgoingAsync.cpp
+++ b/cpp/src/Ice/OutgoingAsync.cpp
@@ -1114,13 +1114,12 @@ IceInternal::CommunicatorBatchOutgoingAsync::check(bool userThread)
//
// _sentSynchronously is immutable here.
//
- if(!_sentSynchronously && userThread)
+ if(!_sentSynchronously || !userThread)
{
__sentAsync();
}
else
{
- assert(_sentSynchronously == userThread); // sentSynchronously && !userThread is impossible.
AsyncResult::__sent();
}
}