mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 11:15:27 +01:00
[PR #223] [CLOSED] fix: stop calling DiscordClient::start() when error is thrown #767
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#767
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/223
Author: @Elvyria
Created: 8/12/2025
Status: ❌ Closed
Base:
master← Head:fix/thread-leak📝 Commits (1)
52d3525fix: stop callingDiscordClient::start()when error is thrown📊 Changes
1 file changed (+1 additions, -6 deletions)
View changed files
📝
src/main.rs(+1 -6)📄 Description
Closes: https://github.com/JakeStanger/mpd-discord-rpc/issues/204
DiscordClient::start() will attempt to reconnect automatically, calling it manually is allowed for some reason and spawns additional threads.
Tested briefly - closed and opened Discord client around 5 times while running, reconnects automatically, no issues, additional threads are no longer spawned.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.