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

pull/2321/head
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
1 changed files with 1 additions and 1 deletions

View File

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