am 091c5238: Merge "SipAudioCall: perform local ops before network op in endCall()" into gingerbread

Merge commit '091c5238a00ca51dc69b8b09459e6ac88e1eb077' into gingerbread-plus-aosp

* commit '091c5238a00ca51dc69b8b09459e6ac88e1eb077':
  SipAudioCall: perform local ops before network op in endCall()
This commit is contained in:
Hung-ying Tyan
2010-08-10 20:50:40 -07:00
committed by Android Git Automerger

View File

@@ -343,8 +343,11 @@ public class SipAudioCallImpl extends SipSessionAdapter
public synchronized void endCall() throws SipException { public synchronized void endCall() throws SipException {
try { try {
stopRinging(); stopRinging();
if (mSipSession != null) mSipSession.endCall();
stopCall(true); stopCall(true);
mInCall = false;
// perform the above local ops first and then network op
if (mSipSession != null) mSipSession.endCall();
} catch (Throwable e) { } catch (Throwable e) {
throwSipException(e); throwSipException(e);
} }