Commit 0613e459 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Fix handling of connect req while connected." into mnc-dr-dev

parents 19922eb9 3f545d69
......@@ -1848,18 +1848,12 @@ public final class DataConnection extends StateMachine {
switch (msg.what) {
case EVENT_CONNECT: {
ConnectionParams cp = (ConnectionParams) msg.obj;
// either add this new apn context to our set or
// update the existing cp with the latest connection generation number
mApnContexts.put(cp.mApnContext, cp);
if (DBG) {
log("DcActiveState: EVENT_CONNECT cp=" + cp + " dc=" + DataConnection.this);
}
if (mApnContexts.containsKey(cp.mApnContext)) {
log("DcActiveState ERROR already added apnContext=" + cp.mApnContext);
} else {
mApnContexts.put(cp.mApnContext, cp);
if (DBG) {
log("DcActiveState msg.what=EVENT_CONNECT RefCount="
+ mApnContexts.size());
}
}
notifyConnectCompleted(cp, DcFailCause.NONE, false);
retVal = HANDLED;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment