diff options
author | Jose <jose@zeroc.com> | 2016-07-25 14:28:19 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-07-25 14:28:19 +0200 |
commit | 98fce82562df40fa7aa82c30b29aa46b1a8e9fa7 (patch) | |
tree | 8add5b8c347ffa9fb85290756bde21017451512e | |
parent | Fix ICE-7249 - Python Ice/objects cross test failure (diff) | |
download | ice-98fce82562df40fa7aa82c30b29aa46b1a8e9fa7.tar.bz2 ice-98fce82562df40fa7aa82c30b29aa46b1a8e9fa7.tar.xz ice-98fce82562df40fa7aa82c30b29aa46b1a8e9fa7.zip |
JS OutgoingConnectionFactory bug setting connection adapter
-rw-r--r-- | js/src/Ice/OutgoingConnectionFactory.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/js/src/Ice/OutgoingConnectionFactory.js b/js/src/Ice/OutgoingConnectionFactory.js index 12fec6c67e5..d0f8a74e5b8 100644 --- a/js/src/Ice/OutgoingConnectionFactory.js +++ b/js/src/Ice/OutgoingConnectionFactory.js @@ -152,14 +152,13 @@ var OutgoingConnectionFactory = Class({ // endpoint = endpoint.changeCompress(false); - for(var j = 0; j < self._connectionsByEndpoint.length; ++j) - { - var connection = self._connectionsByEndpoint[j]; - if(connection.endpoint().equals(endpoint)) - { - connection.setAdapter(adapter); - } - } + self._connectionsByEndpoint.forEach(function(connection) + { + if(connection.endpoint().equals(endpoint)) + { + connection.setAdapter(adapter); + } + }); } } ); |