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

Merge commit 'ca54cdaf66449cd4f81d8887ec603392b8f3779c' into gingerbread-plus-aosp

* commit 'ca54cdaf66449cd4f81d8887ec603392b8f3779c':
  SipService: fix thread/socket leak
This commit is contained in:
Hung-ying Tyan
2010-09-22 09:41:17 -07:00
committed by Android Git Automerger

View File

@@ -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);