hyprland: fix json parser runtime err from socket read ending early

This commit is contained in:
Calvin Chu 2023-07-16 21:58:15 +10:00
parent 2211a79840
commit 0f6eff1f20
No known key found for this signature in database
GPG Key ID: 2DB1635708CFF94E

View File

@ -192,7 +192,7 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
return "";
}
response.append(buffer, sizeWritten);
} while (sizeWritten == 8192);
} while (sizeWritten > 0);
close(SERVERSOCKET);
return response;