mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
fix: assign lastId when track fetch completes regardless of error
This commit is contained in:
parent
ed079e3e15
commit
32e0688b17
@ -74,8 +74,9 @@ extension ProxyPlaylistListeners on ProxyPlaylistNotifier {
|
||||
|
||||
if (lastTrack == nextTrack.id) return;
|
||||
|
||||
await ref.read(sourcedTrackProvider(nextTrack).future);
|
||||
lastTrack = nextTrack.id!;
|
||||
await ref.read(sourcedTrackProvider(nextTrack).future).whenComplete(() {
|
||||
lastTrack = nextTrack.id!;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user