Check for null
This commit is contained in:
parent
f53b181fe8
commit
08a3106f11
|
@ -366,10 +366,14 @@ public class PlaybackServiceTaskManager {
|
|||
}
|
||||
if (waitingTime <= 0) {
|
||||
Log.d(TAG, "Sleep timer expired");
|
||||
shakeListener.pause();
|
||||
shakeListener = null;
|
||||
if(shakeListener != null) {
|
||||
shakeListener.pause();
|
||||
shakeListener = null;
|
||||
}
|
||||
if (!Thread.currentThread().isInterrupted()) {
|
||||
callback.onSleepTimerExpired();
|
||||
} else {
|
||||
Log.d(TAG, "Sleep timer interrupted");
|
||||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
|
|
Loading…
Reference in New Issue