aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-01-29 13:35:24 +0100
committerGitHub <noreply@github.com>2026-01-29 13:35:24 +0100
commit82178222a2bc0cef9c8121d6dde316b5ef8986ab (patch)
tree3423c7f396fced7fddc5a7ef34c384db5b209e9a /default-plugins
parentAllow saving current session for resurrection on demand (#4654) (diff)
downloadsl0ppij-82178222a2bc0cef9c8121d6dde316b5ef8986ab.tar.gz
sl0ppij-82178222a2bc0cef9c8121d6dde316b5ef8986ab.tar.xz
sl0ppij-82178222a2bc0cef9c8121d6dde316b5ef8986ab.zip
Handle errors in route loop (#4655)
* handle errors in route thread * fix session-manager deadlock on startup * rustfmt * add pr
Diffstat (limited to 'default-plugins')
-rw-r--r--default-plugins/session-manager/src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/default-plugins/session-manager/src/main.rs b/default-plugins/session-manager/src/main.rs
index 1a76fdb9..85b120e7 100644
--- a/default-plugins/session-manager/src/main.rs
+++ b/default-plugins/session-manager/src/main.rs
@@ -62,10 +62,9 @@ impl ZellijPlugin for State {
self.active_screen = ActiveScreen::NewSession;
}
self.new_session_info.is_welcome_screen = self.is_welcome_screen;
-
- self.current_session_last_saved_time = current_session_last_saved_time();
- set_timeout(1.0);
-
+ if !self.is_welcome_screen {
+ set_timeout(0.1); // for the current_session_last_saved_time polling
+ }
subscribe(&[
EventType::ModeUpdate,
EventType::SessionUpdate,