fix possible crash in progress handler
This commit is contained in:
parent
f584cff697
commit
102a745718
1 changed files with 1 additions and 1 deletions
|
|
@ -1286,7 +1286,7 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
info.setItemId(mService.get().getCurrentSong().id);
|
||||
info.setPositionTicks(progress * 10000);
|
||||
|
||||
task.cancel(true);
|
||||
if (task != null) task.cancel(true);
|
||||
executorService.shutdownNow();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue