Added logging

pull/213/head
M66B 1 year ago
parent a7ae3c2157
commit d3e6d9668b

@ -75,7 +75,9 @@ public class MediaPlayerHelper {
mediaPlayer.prepareAsync();
try {
if (!sem.tryAcquire(duration, TimeUnit.SECONDS)) {
boolean acquired = sem.tryAcquire(duration, TimeUnit.SECONDS);
EntityLog.log(context, "Alarm acquired=" + acquired);
if (!acquired) {
mediaPlayer.stop();
mediaPlayer.release();
}

Loading…
Cancel
Save