diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-02 02:59:36 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-02 02:59:36 +0000 |
commit | 610aac07d482bfc9aff85ec68da3b018390552f8 (patch) | |
tree | 796f5f0d7e5a03bea4f9c9abb5804348947eaa66 /cpp/src/IceStorm/SubscriberFactory.cpp | |
parent | revising dictionary helper code for bug 386 (diff) | |
download | ice-610aac07d482bfc9aff85ec68da3b018390552f8.tar.bz2 ice-610aac07d482bfc9aff85ec68da3b018390552f8.tar.xz ice-610aac07d482bfc9aff85ec68da3b018390552f8.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=28
Diffstat (limited to 'cpp/src/IceStorm/SubscriberFactory.cpp')
-rw-r--r-- | cpp/src/IceStorm/SubscriberFactory.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cpp/src/IceStorm/SubscriberFactory.cpp b/cpp/src/IceStorm/SubscriberFactory.cpp index 3b2c820827c..9a2350aca50 100644 --- a/cpp/src/IceStorm/SubscriberFactory.cpp +++ b/cpp/src/IceStorm/SubscriberFactory.cpp @@ -36,26 +36,22 @@ SubscriberFactory::createLinkSubscriber(const TopicLinkPrx& obj, Ice::Int cost) IceUtil::RecMutex::Lock sync(_proxiesMutex); // - // Delivery to links is done in batch mode. - // - TopicLinkPrx newObj = TopicLinkPrx::uncheckedCast(obj->ice_batchOneway()); - - // - // Check if a queued proxy already exists, or create one if necessary. + // Check if a queued proxy already exists, or create one if + // necessary. // QueuedProxyPtr proxy; - map<Ice::ObjectPrx, ProxyInfo>::iterator p = _proxies.find(newObj); + map<Ice::ObjectPrx, ProxyInfo>::iterator p = _proxies.find(obj); if(p != _proxies.end()) { proxy = p->second.proxy; } else { - proxy = new LinkProxy(newObj); + proxy = new LinkProxy(obj); ProxyInfo info; info.proxy = proxy; info.count = 0; - _proxies.insert(pair<Ice::ObjectPrx, ProxyInfo>(newObj, info)); + _proxies.insert(pair<Ice::ObjectPrx, ProxyInfo>(obj, info)); } return new LinkSubscriber(this, _communicator, _traceLevels, proxy, cost); |