mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(ipc): typo
This commit is contained in:
parent
bb1cf7570e
commit
42dc0c4c71
@ -79,7 +79,7 @@ struct Ipc::ipc_response Ipc::recv(int fd) const {
|
|||||||
auto res = ::recv(fd, header.data() + total, ipc_header_size_ - total, 0);
|
auto res = ::recv(fd, header.data() + total, ipc_header_size_ - total, 0);
|
||||||
if (res <= 0) {
|
if (res <= 0) {
|
||||||
if (res <= 0 && (fd_event_ == -1 || fd_ == -1)) {
|
if (res <= 0 && (fd_event_ == -1 || fd_ == -1)) {
|
||||||
// IPC is closed so just return empty response
|
// IPC is closed so just return an empty response
|
||||||
return {0, 0, ""};
|
return {0, 0, ""};
|
||||||
}
|
}
|
||||||
throw std::runtime_error("Unable to receive IPC header");
|
throw std::runtime_error("Unable to receive IPC header");
|
||||||
|
Loading…
Reference in New Issue
Block a user