Merge "SipService: fix thread/socket leak" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca54cdaf66
@@ -172,7 +172,7 @@ public final class SipService extends ISipService.Stub {
|
|||||||
SipSessionGroupExt group = mSipGroups.remove(localProfileUri);
|
SipSessionGroupExt group = mSipGroups.remove(localProfileUri);
|
||||||
if (group != null) {
|
if (group != null) {
|
||||||
notifyProfileRemoved(group.getLocalProfile());
|
notifyProfileRemoved(group.getLocalProfile());
|
||||||
group.closeToNotReceiveCalls();
|
group.close();
|
||||||
if (isWifiOn() && !anyOpened()) releaseWifiLock();
|
if (isWifiOn() && !anyOpened()) releaseWifiLock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -449,9 +449,9 @@ public final class SipService extends ISipService.Stub {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closeToNotReceiveCalls() {
|
public void close() {
|
||||||
mOpened = false;
|
mOpened = false;
|
||||||
mSipGroup.closeToNotReceiveCalls();
|
mSipGroup.close();
|
||||||
mAutoRegistration.stop();
|
mAutoRegistration.stop();
|
||||||
if (DEBUG) Log.d(TAG, " close: " + getUri() + ": "
|
if (DEBUG) Log.d(TAG, " close: " + getUri() + ": "
|
||||||
+ mIncomingCallBroadcastAction);
|
+ mIncomingCallBroadcastAction);
|
||||||
|
|||||||
Reference in New Issue
Block a user