Merge "Fix the issue of onNetwork in UI thread."

This commit is contained in:
repo sync
2011-06-13 03:09:27 -07:00
committed by Android (Google) Code Review

View File

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