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

Commit fd9c6bb4 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by Gerrit Code Review
Browse files

Merge "MAP Client Exception at shutdown"

parents 81b72ae8 98d172dc
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class MasClient {
                    Log.d(TAG, "Connection Successful");
                }
                mConnected = true;
                mCallback.obtainMessage(MceStateMachine.MSG_MAS_CONNECTED).sendToTarget();
                mCallback.sendMessage(MceStateMachine.MSG_MAS_CONNECTED);
            } else {
                disconnect();
            }
@@ -152,14 +152,13 @@ public class MasClient {
        }

        mConnected = false;
        mCallback.obtainMessage(MceStateMachine.MSG_MAS_DISCONNECTED).sendToTarget();
        mCallback.sendMessage(MceStateMachine.MSG_MAS_DISCONNECTED);
    }

    private void executeRequest(Request request) {
        try {
            request.execute(mSession);
            mCallback.obtainMessage(MceStateMachine.MSG_MAS_REQUEST_COMPLETED, request)
                    .sendToTarget();
            mCallback.sendMessage(MceStateMachine.MSG_MAS_REQUEST_COMPLETED, request);
        } catch (IOException e) {
            if (DBG) {
                Log.d(TAG, "Request failed: " + request);