Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0c07d4f authored by Kazuhiro Ondo's avatar Kazuhiro Ondo Committed by Android Git Automerger
Browse files

am 012b86d4: DataConnection was cleaned up too early if it\'s already disconnecting

* commit '012b86d4':
  DataConnection was cleaned up too early if it's already disconnecting
parents 672c468c 012b86d4
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -788,6 +788,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
                        Message msg = obtainMessage(EVENT_DISCONNECT_DONE, apnContext);
                        apnContext.getDataConnection().tearDown(apnContext.getReason(), msg);
                        apnContext.setState(State.DISCONNECTING);
                    }
                } else {
                    // apn is connected but no reference to dcac.
                    // Should not be happen, but reset the state in case.
@@ -796,7 +797,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
                                                apnContext.getApnType());
                }
            }
            }
        } else {
            // force clean up the data connection.
            if (dcac != null) dcac.resetSync();