fix potential ConcurrentModificationException
authordadubrow
Thu, 11 Feb 2010 11:50:24 -0600
changeset 935 3d8a32343ccb
parent 930 82e9add879bf
child 936 e71a43ae864a
fix potential ConcurrentModificationException
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ServiceTester.java
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ServiceTester.java	Thu Feb 11 10:51:50 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ServiceTester.java	Thu Feb 11 11:50:24 2010 -0600
@@ -94,7 +94,7 @@
 			public void run() {
 				while (true) {
 					Collection<Set<AbstractConnectedService2>> csSetsByResource = 
-						createConnectedServiceSetsByResource(registry);
+						createConnectedServiceSetsByResource(new HashSet<AbstractConnectedService2>(registry));
 					for (Set<AbstractConnectedService2> set : csSetsByResource) {
 						Collection<Set<AbstractConnectedService2>> csSetsByService = 
 							createConnectedServiceSetsByService(set);