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

Commit ca54cdaf authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android (Google) Code Review
Browse files

Merge "SipService: fix thread/socket leak" into gingerbread

parents 4f294558 fc51f2c9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ public final class SipService extends ISipService.Stub {
        SipSessionGroupExt group = mSipGroups.remove(localProfileUri);
        if (group != null) {
            notifyProfileRemoved(group.getLocalProfile());
            group.closeToNotReceiveCalls();
            group.close();
            if (isWifiOn() && !anyOpened()) releaseWifiLock();
        }
    }
@@ -449,9 +449,9 @@ public final class SipService extends ISipService.Stub {
            }
        }

        public void closeToNotReceiveCalls() {
        public void close() {
            mOpened = false;
            mSipGroup.closeToNotReceiveCalls();
            mSipGroup.close();
            mAutoRegistration.stop();
            if (DEBUG) Log.d(TAG, "   close: " + getUri() + ": "
                    + mIncomingCallBroadcastAction);