mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
applicationHandler.removeCallbacksAndMessages(/* token= */ null);
|
applicationHandler.removeCallbacksAndMessages(/* token= */ null);
|
||||||
|
requirementsWatcher.stop();
|
||||||
// Reset state.
|
// Reset state.
|
||||||
downloads = Collections.emptyList();
|
downloads = Collections.emptyList();
|
||||||
pendingMessages = 0;
|
pendingMessages = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue