mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-17 19:18:36 +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];
|
||||
if (sock->bytesAvailable() < static_cast<qint64>(info.msgLen)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return (sock->bytesAvailable() >= static_cast<qint64>(info.msgLen));
|
||||
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user