1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-17 19:18:36 +01:00

SingleApplication: Simplify code

This commit is contained in:
Jonas Kvinge 2022-02-06 04:18:59 +01:00
parent e106dda794
commit 8bf473dc3a
2 changed files with 2 additions and 10 deletions

View File

@ -427,11 +427,7 @@ bool SingleApplicationPrivate::isFrameComplete(QLocalSocket *sock) {
}
const ConnectionInfo &info = connectionMap_[sock];
if (sock->bytesAvailable() < static_cast<qint64>(info.msgLen)) {
return false;
}
return true;
return (sock->bytesAvailable() >= static_cast<qint64>(info.msgLen));
}

View File

@ -427,11 +427,7 @@ bool SingleCoreApplicationPrivate::isFrameComplete(QLocalSocket *sock) {
}
ConnectionInfo &info = connectionMap_[sock];
if (sock->bytesAvailable() < static_cast<qint64>(info.msgLen)) {
return false;
}
return true;
return (sock->bytesAvailable() >= static_cast<qint64>(info.msgLen));
}