summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2010-08-10 21:54:07 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-10 21:54:07 -0700
commit4d0e7cd7902c3e093903614f1fc2500c3b694cee (patch)
tree418bcfcafa76378dacc2b9e1954d86c1ae15d7ea
parenta5d4503bc4697fa6e9a3a387dacfbe09050e400c (diff)
parent9a025349dc5a4e699fbe99a714f523e9903fa534 (diff)
downloadframeworks_base-4d0e7cd7902c3e093903614f1fc2500c3b694cee.zip
frameworks_base-4d0e7cd7902c3e093903614f1fc2500c3b694cee.tar.gz
frameworks_base-4d0e7cd7902c3e093903614f1fc2500c3b694cee.tar.bz2
am 9a025349: am 091c5238: Merge "SipAudioCall: perform local ops before network op in endCall()" into gingerbread
Merge commit '9a025349dc5a4e699fbe99a714f523e9903fa534' * commit '9a025349dc5a4e699fbe99a714f523e9903fa534': SipAudioCall: perform local ops before network op in endCall()
-rw-r--r--voip/java/android/net/sip/SipAudioCallImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/voip/java/android/net/sip/SipAudioCallImpl.java b/voip/java/android/net/sip/SipAudioCallImpl.java
index 57e0bd2..474bc4b 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);
}