mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[PR #139] [MERGED] fix: Update current progress at new track load #628
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#628
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/139
Author: @sputnick1124
Created: 11/6/2019
Status: ✅ Merged
Merged: 11/6/2019
Merged by: @Rigellute
Base:
master← Head:prevent-overflow-panic📝 Commits (1)
e9cd8abfix: Update current progress at new track load📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
src/app.rs(+1 -0)📄 Description
There was a race condition between selecting a new track and the track
progress updating; this caused the app to sometimes panic when
selecting a track which has a total duration less than the current
progress as it tries to report a negative remaining time in the playbar
(but it tries this with unsigned values).
This, I think, was ultimately the root cause of https://github.com/Rigellute/spotify-tui/issues/125 and the solution we've been looking for with https://github.com/Rigellute/spotify-tui/pull/132 and https://github.com/Rigellute/spotify-tui/pull/126.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.