From 5e2eae9a109c2a9a9a58942c226564952ad16743 Mon Sep 17 00:00:00 2001 From: Ryan Heise Date: Mon, 24 Aug 2020 01:14:28 +1000 Subject: [PATCH] Don't orphan cache files when load fails. --- lib/just_audio.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/just_audio.dart b/lib/just_audio.dart index afd1e99..ab5d316 100644 --- a/lib/just_audio.dart +++ b/lib/just_audio.dart @@ -469,7 +469,6 @@ class AudioPlayer { return duration; } catch (e) { _audioSource = null; - _audioSources.clear(); rethrow; } }