diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index a58b4fd2..e3f5620c 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -411,7 +411,7 @@ void Connection::SetCrossfade(unsigned crossfade) const int Connection::AddSong(const std::string &path) { - if (itsConnection) + if (!itsConnection) return -1; int id = -1; if (GetPlaylistLength() < itsMaxPlaylistLength)