From 42dc0c4c71b0d646efbb108807bf3107aeed73e0 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 19 Apr 2019 11:10:48 +0200 Subject: [PATCH] fix(ipc): typo --- src/modules/sway/ipc/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sway/ipc/client.cpp b/src/modules/sway/ipc/client.cpp index de19020f..6617437e 100644 --- a/src/modules/sway/ipc/client.cpp +++ b/src/modules/sway/ipc/client.cpp @@ -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); if (res <= 0) { 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, ""}; } throw std::runtime_error("Unable to receive IPC header");