tnychn / mpv-discord

🎈 A cross-platform Discord Rich Presence integration for mpv with no external dependencies.
MIT License
172 stars 14 forks source link

Questionable break statement. #18

Closed hacel closed 3 years ago

hacel commented 3 years ago

https://github.com/tnychn/mpv-discord/blob/b4caea6ca35339eeb691e5a8949540c33d883061/mpv-discord/mpvrpc/client.go#L39-L42 This doesn't break out of the loop, just the select statement.

tnychn commented 3 years ago

Good catch! It was intended to be return instead of break.