[PR #168] [CLOSED] fix: Fixing races and resouce leaks #237

Closed
opened 2026-02-28 14:26:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/devgianlu/go-librespot/pull/168
Author: @tantra35
Created: 1/30/2025
Status: Closed

Base: masterHead: fix-01-portion-of-sync-bugs


📄 Description

  1. We must provide some cancelable context, so when main applplayer loop ends, any depend network operations must be canceled

  2. When chanel is closed it return empty variables (in case none pointer it returns emptry structs, wil nil chanel and if we do ch recive o send "some data" to nil chanel we hang forever)

  3. chanel for stop must be simple closed, in such case when we do <- closedCh we will signal in any case wneh chanel closed

  4. Dealer must be closed at the end on player loop


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/devgianlu/go-librespot/pull/168 **Author:** [@tantra35](https://github.com/tantra35) **Created:** 1/30/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-01-portion-of-sync-bugs` --- ### 📄 Description 1. We must provide some cancelable context, so when main applplayer loop ends, any depend network operations must be canceled 2. When chanel is closed it return empty variables (in case none pointer it returns emptry structs, wil nil chanel and if we do ch recive o send "some data" to nil chanel we hang forever) 3. chanel for stop must be simple closed, in such case when we do <- closedCh we will signal in any case wneh chanel closed 4. Dealer must be closed at the end on player loop --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:26:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#237
No description provided.