Merge pull request #2135 from eneshecan/master

pull/2140/head
Alex 2023-04-23 13:47:28 +02:00 committed by GitHub
commit 757f20fc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -145,9 +145,8 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
memset(&ai_hints, 0, sizeof(struct addrinfo)); memset(&ai_hints, 0, sizeof(struct addrinfo));
ai_hints.ai_family = AF_UNSPEC; ai_hints.ai_family = AF_UNSPEC;
ai_hints.ai_socktype = SOCK_STREAM; ai_hints.ai_socktype = SOCK_STREAM;
const auto SERVER = getaddrinfo("localhost", NULL, &ai_hints, &ai_res);
if (!SERVER) { if (getaddrinfo("localhost", NULL, &ai_hints, &ai_res) != 0) {
spdlog::error("Hyprland IPC: Couldn't get host (2)"); spdlog::error("Hyprland IPC: Couldn't get host (2)");
return ""; return "";
} }