mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-18 03:29:12 +01:00
SingleApplication: Simplify code
This commit is contained in:
parent
e106dda794
commit
8bf473dc3a
@ -427,11 +427,7 @@ bool SingleApplicationPrivate::isFrameComplete(QLocalSocket *sock) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ConnectionInfo &info = connectionMap_[sock];
|
const ConnectionInfo &info = connectionMap_[sock];
|
||||||
if (sock->bytesAvailable() < static_cast<qint64>(info.msgLen)) {
|
return (sock->bytesAvailable() >= static_cast<qint64>(info.msgLen));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,11 +427,7 @@ bool SingleCoreApplicationPrivate::isFrameComplete(QLocalSocket *sock) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ConnectionInfo &info = connectionMap_[sock];
|
ConnectionInfo &info = connectionMap_[sock];
|
||||||
if (sock->bytesAvailable() < static_cast<qint64>(info.msgLen)) {
|
return (sock->bytesAvailable() >= static_cast<qint64>(info.msgLen));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user