mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 09:15:30 +01:00
[PR #225] [MERGED] fix: create drpc client with error config #1567
Labels
No labels
bug
enhancement
help wanted
package
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/mpd-discord-rpc#1567
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/JakeStanger/mpd-discord-rpc/pull/225
Author: @koffydrop
Created: 8/19/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @JakeStanger
Base:
master← Head:master📝 Commits (2)
7592cdechore: fix inconsistent indentation insidetokio::select!a82faf0fix: create drpc client with error config📊 Changes
1 file changed (+12 additions, -11 deletions)
View changed files
📝
src/main.rs(+12 -11)📄 Description
Fixes https://github.com/JakeStanger/mpd-discord-rpc/issues/204
Creating the drpc client with
DiscordClient::with_error_config()and 0 attempts makes the spawned threads actually exit on error and not persist to keep retrying.Tested a few cases where I observed the issue, starting with discord opened, closed, before and after the socket is created, no extra threads persist and connection is consistent.
Will continue using as my main service to check if behavior changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.