summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3f9b07)
raw | patch | inline | side by side (parent: a3f9b07)
author | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:38:58 +0000 (23:38 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:38:58 +0000 (23:38 +0100) |
src/mpdclient.c | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 3db559b3640c4872fe592159ea430b2667c707f3..f500c9adb689de508b7de4673f73dbe141b72396 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
const gchar *password)
{
/* close any open connection */
- if (c->connection)
- mpdclient_disconnect(c);
+ mpdclient_disconnect(c);
/* connect to MPD */
c->connection = mpd_connection_new(host, port, timeout_ms);