SipAudioCall: perform local ops before network op in endCall()

Change-Id: I1808f715d56c0979cea7741cb5bdb3831774d3ef
This commit is contained in:
Hung-ying Tyan
2010-08-10 13:23:12 +08:00
parent 8e63ddb4c7
commit ea4de5bd25

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