From 0f6eff1f206276ca7a0cbaa8eb40103f8e4b5c8b Mon Sep 17 00:00:00 2001 From: Calvin Chu Date: Sun, 16 Jul 2023 21:58:15 +1000 Subject: [PATCH] hyprland: fix json parser runtime err from socket read ending early --- src/modules/hyprland/backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/hyprland/backend.cpp b/src/modules/hyprland/backend.cpp index 79bc6375..6e586966 100644 --- a/src/modules/hyprland/backend.cpp +++ b/src/modules/hyprland/backend.cpp @@ -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;