From d2623dda9bcb8c6d2fa0bcd952e2744c62091de5 Mon Sep 17 00:00:00 2001 From: Marc Baechinger Date: Wed, 19 Oct 2022 21:14:45 +0000 Subject: [PATCH] Merge pull request #10549 from ferhatparmak:release-requirementswatcher PiperOrigin-RevId: 472488921 (cherry picked from commit 92cfa7467b8f74daab22276c6db4e885b76e7c28) --- .../com/google/android/exoplayer2/offline/DownloadManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java index ad7097b7623..00c6913ef1b 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java @@ -531,6 +531,7 @@ public void release() { Thread.currentThread().interrupt(); } applicationHandler.removeCallbacksAndMessages(/* token= */ null); + requirementsWatcher.stop(); // Reset state. downloads = Collections.emptyList(); pendingMessages = 0;