# HG changeset patch # User Chad Peckham # Date 1267731675 21600 # Node ID 43348591c4a00b84897fde65d7f50118745ced69 # Parent 8915e650957cbbe1f77c5b6e7d6eeb20c7a69c86 Make sure we don't remember non-switch status if only one device is connected. Also increase the timeout to get USB personalities seen on some devices. diff -r 8915e650957c -r 43348591c4a0 connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java --- a/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java Thu Mar 04 13:30:22 2010 -0600 +++ b/connectivity/com.nokia.carbide.remoteConnections.discovery.pccs/src/com/nokia/carbide/remoteconnections/discovery/pccs/pccsnative/PCCSConnection.java Thu Mar 04 13:41:15 2010 -0600 @@ -549,6 +549,11 @@ return goodConnections; } + if (deviceList.length == 1) { + // forget all non switched devices + forgetAllNoSwitchConnectionsNotInCurrentList(null); + } + Collection personalityList = null; if (numUSBDevicesExpected > 0) { int attempt = 1; @@ -556,7 +561,7 @@ personalityList = getAllDeviceUSBPersonalities(); if (personalityList == null || personalityList.size() < numUSBDevicesExpected) { if (DEBUG) System.out.printf("Error %d getting USB personalities: %d of %d total\n", attempt, (personalityList != null) ? personalityList.size() : 0, numUSBDevicesExpected); //$NON-NLS-1$ - if (attempt > 5) { + if (attempt > 10) { break; // bomb - leave UPAPI open, we need it later } attempt++;