summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-01-23 23:28:36 +0000
committerMarc Laukien <marc@zeroc.com>2004-01-23 23:28:36 +0000
commite084fd57d02ca6fa2b0320ecf23c9a3d5b98410c (patch)
treec83c32763c9b863bfc5c3bdbf2e0383920b76156 /cpp
parentHP-UX port (diff)
downloadice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.tar.bz2
ice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.tar.xz
ice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.zip
assert
Diffstat (limited to 'cpp')
-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.
}