diff options
author | repo sync <cywang@google.com> | 2011-06-13 17:07:41 +0800 |
---|---|---|
committer | repo sync <cywang@google.com> | 2011-06-13 17:46:41 +0800 |
commit | c133781723f64d1321685d02ad6a208286bf0a42 (patch) | |
tree | 38896206672ab77f9b81a8929f985017dee65749 /voip/java | |
parent | b3610666c63d598097706924ec9f4d688a3a724f (diff) | |
download | frameworks_base-c133781723f64d1321685d02ad6a208286bf0a42.zip frameworks_base-c133781723f64d1321685d02ad6a208286bf0a42.tar.gz frameworks_base-c133781723f64d1321685d02ad6a208286bf0a42.tar.bz2 |
Fix the issue of onNetwork in UI thread.
bug:458435
This will temporarily start a thread for answering calls, we are
going to add a handler thread to handle this soon.
Change-Id: I9079038d671e1b1631c6e663fc2c3de297d97428
Diffstat (limited to 'voip/java')
-rw-r--r-- | voip/java/com/android/server/sip/SipSessionGroup.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/voip/java/com/android/server/sip/SipSessionGroup.java b/voip/java/com/android/server/sip/SipSessionGroup.java index b5f1a17..4837eb9 100644 --- a/voip/java/com/android/server/sip/SipSessionGroup.java +++ b/voip/java/com/android/server/sip/SipSessionGroup.java @@ -528,12 +528,8 @@ class SipSessionGroup implements SipListener { public void answerCall(String sessionDescription, int timeout) { synchronized (SipSessionGroup.this) { if (mPeerProfile == null) return; - try { - processCommand(new MakeCallCommand(mPeerProfile, - sessionDescription, timeout)); - } catch (SipException e) { - onError(e); - } + doCommandAsync(new MakeCallCommand(mPeerProfile, + sessionDescription, timeout)); } } |