tMove comment to right place - spoon - dwm status utility (2f30 fork)
(HTM) git clone git://src.adamsgaard.dk/spoon
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit db31075bc39b4ff751d9ea719a59204eb3b9dd7b
(DIR) parent 9c3041c149f39a124f71e940fc6f84a505e60050
(HTM) Author: sin <sin@2f30.org>
Date: Mon, 26 Sep 2016 16:54:58 +0100
Move comment to right place
Diffstat:
M spoon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/spoon.c b/spoon.c
t@@ -57,10 +57,10 @@ mpdread(char *buf, size_t len)
}
mpd_send_current_song(conn);
song = mpd_recv_song(conn);
- /* if no song is playing, reuse connection next time */
if (song == NULL) {
if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS)
goto out;
+ /* if no song is playing, reuse connection next time */
return -1;
}
artist = mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);