mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-27 08:01:21 -04:00
Merge pull request #1370 from varjolintu/browser_cpu_fix
High CPU fix for Linux
This commit is contained in:
commit
6aaa89a23c
1 changed files with 3 additions and 2 deletions
|
@ -93,9 +93,10 @@ void NativeMessagingHost::readLength()
|
||||||
{
|
{
|
||||||
quint32 length = 0;
|
quint32 length = 0;
|
||||||
std::cin.read(reinterpret_cast<char*>(&length), 4);
|
std::cin.read(reinterpret_cast<char*>(&length), 4);
|
||||||
if (!std::cin.eof() && length > 0)
|
if (!std::cin.eof() && length > 0) {
|
||||||
{
|
|
||||||
readStdIn(length);
|
readStdIn(length);
|
||||||
|
} else {
|
||||||
|
m_notifier->setEnabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue