mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[PR #426] [MERGED] Prevent spirc from crashing when the queue is empty. #920
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#920
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/librespot-org/librespot/pull/426
Author: @kaymes
Created: 1/23/2020
Status: ✅ Merged
Merged: 1/24/2020
Merged by: @sashahilton00
Base:
dev← Head:empty-queue-crash📝 Commits (1)
113bb92Prevent spirc from crashing when the queue is empty.📊 Changes
1 file changed (+22 additions, -8 deletions)
View changed files
📝
connect/src/spirc.rs(+22 -8)📄 Description
I investigated a panic I observed. spirc's handle_next was called on an empty queue resulting in an index violation on the queue. I modified the code to catch this kind of situation.
Unfortunately I don't know how to reproduce this situation - I only saw it in the logs and we were mucking around with spotify quite a bit at the time so I don't know which of our actions caused it. Nevertheless I think it's worth fixing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.