summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25fe79b)
raw | patch | inline | side by side (parent: 25fe79b)
author | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:20:24 +0000 (23:20 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:23:35 +0000 (23:23 +0100) |
Make sure that volume gets reset whenever status==NULL, also in
mpdclient_disconnect().
mpdclient_disconnect().
src/mpdclient.c | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index e1aee1cbdb2fcc49d73b82ff13125a3a43f6eb68..13937516897838b43b2f883758af8d966562d272 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
mpd_status_free(c->status);
c->status = NULL;
+
+ c->volume = -1;
}
void
{
struct mpd_connection *connection = mpdclient_get_connection(c);
- c->volume = -1;
-
if (connection == NULL)
return false;