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

Commit 6c9f0e67 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "SAP: Handle disconnect indication message type properly"

parents 48b93b31 b9222dd9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1248,6 +1248,8 @@ public class SapMessage {
                    return "ID_SET_TRANSPORT_PROTOCOL_RESP";
                case ID_RIL_UNSOL_CONNECTED:
                    return "ID_RIL_UNSOL_CONNECTED";
                case ID_RIL_UNSOL_DISCONNECT_IND:
                    return "ID_RIL_UNSOL_DISCONNECT_IND";
                case ID_RIL_UNKNOWN:
                    return "ID_RIL_UNKNOWN";
                case ID_RIL_GET_SIM_STATUS_REQ:
+1 −1
Original line number Diff line number Diff line
@@ -899,7 +899,7 @@ public class SapServer extends Thread implements Callback {
        }

        switch (sapMsg.getMsgType()) {
            case SapMessage.ID_DISCONNECT_IND: {
            case SapMessage.ID_RIL_UNSOL_DISCONNECT_IND: {
                if (mState != SAP_STATE.DISCONNECTED && mState != SAP_STATE.DISCONNECTING) {
                /* we only send disconnect indication to the client if we are actually connected*/
                    SapMessage reply = new SapMessage(SapMessage.ID_DISCONNECT_IND);