summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Connection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp
index 1c6a0e9ac32..d19493b9ec9 100644
--- a/cpp/src/Ice/Connection.cpp
+++ b/cpp/src/Ice/Connection.cpp
@@ -699,6 +699,8 @@ IceInternal::Connection::prepareBatchRequest(BasicStream* os)
void
IceInternal::Connection::finishBatchRequest(BasicStream* os)
{
+ assert(!_batchFlushInProgress);
+
if(_exception.get())
{
unlock();
@@ -715,6 +717,8 @@ IceInternal::Connection::finishBatchRequest(BasicStream* os)
void
IceInternal::Connection::abortBatchRequest()
{
+ assert(!_batchFlushInProgress);
+
setState(StateClosed, AbortBatchRequestException(__FILE__, __LINE__));
unlock(); // Give the Connection back.
}