mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Stop requirements watcher when download manager is released
Unregister listeners and callbacks when download manager is released.
This commit is contained in:
parent
ab4d37f499
commit
4fc015feca
1 changed files with 1 additions and 0 deletions
|
|
@ -531,6 +531,7 @@ public final class DownloadManager {
|
|||
Thread.currentThread().interrupt();
|
||||
}
|
||||
applicationHandler.removeCallbacksAndMessages(/* token= */ null);
|
||||
requirementsWatcher.stop();
|
||||
// Reset state.
|
||||
downloads = Collections.emptyList();
|
||||
pendingMessages = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue