From ea4de5bd25b394a1bac6f27b43c4982aace2011e Mon Sep 17 00:00:00 2001 From: Hung-ying Tyan Date: Tue, 10 Aug 2010 13:23:12 +0800 Subject: [PATCH] SipAudioCall: perform local ops before network op in endCall() Change-Id: I1808f715d56c0979cea7741cb5bdb3831774d3ef --- voip/java/android/net/sip/SipAudioCallImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/voip/java/android/net/sip/SipAudioCallImpl.java b/voip/java/android/net/sip/SipAudioCallImpl.java index 57e0bd2790c4b..474bc4b198d09 100644 --- a/voip/java/android/net/sip/SipAudioCallImpl.java +++ b/voip/java/android/net/sip/SipAudioCallImpl.java @@ -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); }