summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/background_jobs.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-04-15 17:06:29 +0200
committerGitHub <noreply@github.com>2024-04-15 17:06:29 +0200
commit5441309c5c4b23039df7dfbe198f19dd2c3009b1 (patch)
tree71a784485367fe417f1d5fda4c241a5f4e0fd88b /zellij-server/src/background_jobs.rs
parentee9aae789c0cd54a3e4d4e5bc0017217e6ef5925 (diff)
fix(resurrection): some ui fixes (#3264)
Diffstat (limited to 'zellij-server/src/background_jobs.rs')
-rw-r--r--zellij-server/src/background_jobs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/zellij-server/src/background_jobs.rs b/zellij-server/src/background_jobs.rs
index ddf90ee6d..d1bd05859 100644
--- a/zellij-server/src/background_jobs.rs
+++ b/zellij-server/src/background_jobs.rs
@@ -436,10 +436,10 @@ fn find_resurrectable_sessions(
{
Ok(created) => Some(created),
Err(e) => {
- if e.kind() != std::io::ErrorKind::NotFound {
- // let's not spam the
- // logs if serialization
- // is disabled
+ if e.kind() == std::io::ErrorKind::NotFound {
+ return None; // no layout file, cannot resurrect session, let's not
+ // list it
+ } else {
log::error!(
"Failed to read created stamp of resurrection file: {:?}",
e