Re-initialize enough state on "Stop Call" to be able to stop/start multiple calls in succession.

Review URL: https://webrtc-codereview.appspot.com/965015

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3074 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org 2012-11-09 20:57:24 +00:00
parent b518017e71
commit f4b26178df

View File

@ -839,6 +839,7 @@ public class WebRTCDemo extends TabActivity implements IViEAndroidCallback,
readSettings();
if (viERunning || voERunning) {
stopAll();
startMain();
wakeLock.release(); // release the wake lock
btStartStopCall.setText(R.string.startCall);
} else if (enableVoice || enableVideo){
@ -1079,6 +1080,7 @@ public class WebRTCDemo extends TabActivity implements IViEAndroidCallback,
mIsBackgroudLoadRunning = false;
try {
mBackgroundLoad.join();
mBackgroundLoad = null;
} catch (Throwable t) {
Log.v(TAG, "stopCPULoad failed");
}