mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Fix misinterpreting return value of getaddrinfo call which caused an early return for Hyprland language
This commit is contained in:
parent
a9a2223469
commit
f00602058c
@ -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 "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user