Also shorten command list when logging that it failed!

This commit is contained in:
craig.p.drummond
2013-12-30 09:49:16 +00:00
parent 3df1de9733
commit 0155bf35dd

View File

@@ -507,7 +507,7 @@ MPDConnection::Response MPDConnection::sendCommand(const QByteArray &command, bo
}
if (!response.ok) {
DBUG << command << "failed";
DBUG << log(command) << "failed";
if (response.data.isEmpty() && retry && QAbstractSocket::ConnectedState!=sock.state()) {
// Try one more time...
// This scenario, where socket seems to be closed during/after 'write' seems to occiu more often