mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 10:15:28 +01:00
[PR #31] [MERGED] fix unix sockets detection #1661
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#1661
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/31
Author: @jonathannerat
Created: 9/21/2022
Status: ✅ Merged
Merged: 9/21/2022
Merged by: @JakeStanger
Base:
master← Head:fix/unix-socket-host📝 Commits (3)
4f77b3acorrectly detect unix sockets6aca1a2Update src/mpd_conn.rsc1621dbstyle: run cargo fmt📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
src/mpd_conn.rs(+7 -1)📄 Description
is_filemethod fromPathBufchecks if the path exists and point's to a regular file, which UNIX sockets are not. This PR checks if the file is a socket usingMetadata.Maybe the error can be handled a bit better but I barely know any rust, and this change makes it work in my machine so yeah
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.