diff options
author | Marc Laukien <marc@zeroc.com> | 2004-01-23 23:28:36 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-01-23 23:28:36 +0000 |
commit | e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c (patch) | |
tree | c83c32763c9b863bfc5c3bdbf2e0383920b76156 /cpp/src | |
parent | HP-UX port (diff) | |
download | ice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.tar.bz2 ice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.tar.xz ice-e084fd57d02ca6fa2b0320ecf23c9a3d5b98410c.zip |
assert
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 4 |
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. } |