Commit 4fc015fe by Ferhat Parmak

Stop requirements watcher when download manager is released

Unregister listeners and callbacks when download manager is released.
parent ab4d37f4
...@@ -531,6 +531,7 @@ public final class DownloadManager { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment