DO NOT MERGE fix runstate race condition

Bug: 3107829
Change-Id: I94312ad10975af24660455c3aace97634f06f3e1
This commit is contained in:
Irfan Sheriff
2010-10-26 22:23:16 -07:00
parent 2088e371ed
commit fbbf6a46cd

View File

@@ -601,8 +601,6 @@ public class WifiStateTracker extends NetworkStateTracker {
* Send the tracker a notification that the Wi-Fi driver has been stopped.
*/
void notifyDriverStopped() {
mRunState = RUN_STATE_STOPPED;
// Send a driver stopped message to our handler
Message.obtain(this, EVENT_DRIVER_STATE_CHANGED, DRIVER_STOPPED, 0).sendToTarget();
}
@@ -1301,6 +1299,9 @@ public class WifiStateTracker extends NetworkStateTracker {
}
}
break;
case DRIVER_STOPPED:
mRunState = RUN_STATE_STOPPED;
break;
case DRIVER_HUNG:
Log.e(TAG, "Wifi Driver reports HUNG - reloading.");
/**