test if static variables in voiceRouter alone have fixed 2 issues.

This commit is contained in:
sonora 2016-07-19 16:28:19 +02:00
parent f1387e581a
commit 06b45adf91
2 changed files with 4 additions and 4 deletions

View file

@ -60,9 +60,9 @@ public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen
} }
if (mediaPlayer != null){ if (mediaPlayer != null){
mediaPlayer.stop(); mediaPlayer.stop();
//Test to see if this fixes #1351 //Nullifying here fixes #1351, but may be overkill. Let's see if static status variables in VoiceRouter do the job as well.
mediaPlayer.release(); //mediaPlayer.release();
mediaPlayer = null; //mediaPlayer = null;
} }
if (ctx != null) { if (ctx != null) {
abandonAudioFocus(); abandonAudioFocus();

View file

@ -133,7 +133,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
ttsRequests = 0; ttsRequests = 0;
if (mTts != null){ if (mTts != null){
mTts.stop(); mTts.stop();
//Test to see if this fixes #2810 //Nullifying here may fix #2810, but should be overkill. Let's see if static status variables in VoiceRouter do the job as well.
//mTts = null; //mTts = null;
} }
if (ctx != null) { if (ctx != null) {