Fix compilation if -DENABLE_SIMPLE_MPD_SUPPORT=OFF (#892)
This commit is contained in:
committed by
Craig Drummond
parent
66b4b6bfa3
commit
9a8af94028
@@ -442,7 +442,7 @@ MPDConnection::ConnectionReturn MPDConnection::connectToMPD()
|
||||
#ifdef ENABLE_SIMPLE_MPD_SUPPORT
|
||||
int maxConnAttempts=MPDUser::constName==details.name ? 2 : 1;
|
||||
#else
|
||||
int connAttempts=1;
|
||||
int maxConnAttempts=1;
|
||||
#endif
|
||||
ConnectionReturn status=Failed;
|
||||
for (int connAttempt=0; connAttempt<maxConnAttempts; ++connAttempt) {
|
||||
|
||||
Reference in New Issue
Block a user