Connected service properties need to be propagated just as their statuses are
authorEd Swartz <ed.swartz@nokia.com>
Thu, 08 Apr 2010 15:21:44 -0500
changeset 1188 528b98544660
parent 1187 9842cb2130fd
child 1189 9efa81cf79bf
Connected service properties need to be propagated just as their statuses are
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 Apr 08 15:04:26 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/ServiceTester.java	Thu Apr 08 15:21:44 2010 -0500
@@ -42,7 +42,7 @@
 		@Override
 		public void run() {
 			for (Set<AbstractConnectedService2> connectedServices : connectedServicesSets) {
-				// test first in the set and set status for others
+				// test first in the set and set status and properties for others
 				Iterator<AbstractConnectedService2> iterator = connectedServices.iterator();
 				AbstractConnectedService2 toTest = iterator.next();
 				toTest.testStatus();
@@ -50,6 +50,7 @@
 				while (iterator.hasNext()) {
 					AbstractConnectedService2 next = iterator.next();
 					next.setStatus((Status) status);
+					next.getProperties().putAll(toTest.getProperties());
 				}
 			}
 			unregisterThread(this);