mask possble ttsRequests interleaving

This commit is contained in:
sonora 2016-07-26 17:04:46 +02:00
parent 4d5451a118
commit eb167d8cfa

View file

@ -223,6 +223,9 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
if (--ttsRequests <= 0) if (--ttsRequests <= 0)
abandonAudioFocus(); abandonAudioFocus();
log.debug("ttsRequests="+ttsRequests); log.debug("ttsRequests="+ttsRequests);
if (ttsRequests < 0) {
ttsRequests == 0;
}
} }
}); });
} }