aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-02-24 11:39:44 +0100
committerGitHub <noreply@github.com>2025-02-24 11:39:44 +0100
commit20011a83f71cc989194a26755084d8db066a1591 (patch)
tree425bb352fd5513305832a32078b69c4c864a5aa8 /zellij-utils/src
parentfix(stacked-panes): better handling of adding new panes to a stack (#4016) (diff)
downloadsl0ppij-20011a83f71cc989194a26755084d8db066a1591.tar.gz
sl0ppij-20011a83f71cc989194a26755084d8db066a1591.tar.xz
sl0ppij-20011a83f71cc989194a26755084d8db066a1591.zip
chore(deps): update some dependencies (#4019)
* chore(deps): update some dependencies * adjust logging to catch potential ipc issues * style(fmt): remove outdated comment
Diffstat (limited to 'zellij-utils/src')
-rw-r--r--zellij-utils/src/ipc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zellij-utils/src/ipc.rs b/zellij-utils/src/ipc.rs
index dec89049..a9a40bf4 100644
--- a/zellij-utils/src/ipc.rs
+++ b/zellij-utils/src/ipc.rs
@@ -187,9 +187,9 @@ impl<T: Serialize> IpcSenderWithContext<T> {
if rmp_serde::encode::write(&mut self.sender, &(msg, err_ctx)).is_err() {
Err(anyhow!("failed to send message to client"))
} else {
- // TODO: unwrapping here can cause issues when the server disconnects which we don't mind
- // do we need to handle errors here in other cases?
- let _ = self.sender.flush();
+ if let Err(e) = self.sender.flush() {
+ log::error!("Failed to flush ipc sender: {}", e);
+ }
Ok(())
}
}