Update client.cpp

pull/1312/head
Alex 2022-01-24 09:22:47 +01:00 committed by GitHub
parent 65dd245362
commit c4cc7ae396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -14,15 +14,12 @@ Ipc::~Ipc() {
if (fd_ > 0) { if (fd_ > 0) {
// To fail the IPC header // To fail the IPC header
if (write(fd_, "close-sway-ipc", 14) == -1) { write(fd_, "close-sway-ipc", 14);
//std::runtime_error("Couldn't close Sway IPC through fd");
}
close(fd_); close(fd_);
fd_ = -1; fd_ = -1;
} }
if (fd_event_ > 0) { if (fd_event_ > 0) {
if (write(fd_event_, "close-sway-ipc", 14) == -1) { write(fd_event_, "close-sway-ipc", 14);
}
close(fd_event_); close(fd_event_);
fd_event_ = -1; fd_event_ = -1;
} }