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

This commit is contained in:
Hung-ying Tyan
2010-08-10 20:48:18 -07:00
committed by Android (Google) Code Review

View File

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