# HG changeset patch # User dadubrow # Date 1263482056 21600 # Node ID beb2e296a8b703c68b32526797b2f6e45530ae47 # Parent 603d6ca035e89fa52e714397cd74cf8df2c17808 updated set and reset current depending on ready state diff -r 603d6ca035e8 -r beb2e296a8b7 connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java --- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Thu Jan 14 09:13:44 2010 -0600 +++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Thu Jan 14 09:14:16 2010 -0600 @@ -524,7 +524,11 @@ } public void setCurrentConnection(IConnection connection) { - if (connectionToConnectedServices.keySet().contains(connection)) { + if (connection == null) { + currentConnection = null; // special case + fireCurrentConnectionSet(null); + } + else if (connectionToConnectedServices.keySet().contains(connection)) { currentConnection = connection; fireCurrentConnectionSet(connection); }