summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-03-17 11:30:45 +0100
committerBenoit Foucher <benoit@zeroc.com>2008-03-17 11:30:45 +0100
commit392b7d134e3e832c4d53f946be2170aa779e3435 (patch)
treea55876093b9f4351806880aa549ab0e16c877298 /cpp/src
parentBug 2429. (diff)
downloadice-392b7d134e3e832c4d53f946be2170aa779e3435.tar.bz2
ice-392b7d134e3e832c4d53f946be2170aa779e3435.tar.xz
ice-392b7d134e3e832c4d53f946be2170aa779e3435.zip
Fix for bug 2811
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Glacier2/RequestQueue.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/Glacier2/RequestQueue.cpp b/cpp/src/Glacier2/RequestQueue.cpp
index 7556aaee266..f1c7667f596 100644
--- a/cpp/src/Glacier2/RequestQueue.cpp
+++ b/cpp/src/Glacier2/RequestQueue.cpp
@@ -236,9 +236,16 @@ Glacier2::RequestQueue::flushRequests(set<Ice::ObjectPrx>& batchProxies)
IceUtil::Mutex::Lock lock(*this);
for(vector<RequestPtr>::const_iterator p = _requests.begin(); p != _requests.end(); ++p)
{
- if((*p)->invoke()) // If batch invocation, add the proxy to the batch proxy set.
+ try
{
- batchProxies.insert((*p)->getProxy());
+ if((*p)->invoke()) // If batch invocation, add the proxy to the batch proxy set.
+ {
+ batchProxies.insert((*p)->getProxy());
+ }
+ }
+ catch(const Ice::LocalException&)
+ {
+ // Ignore, this can occur for batch requests.
}
}
_requests.clear();