mirror of
https://github.com/wez/wezterm.git
synced 2024-12-29 16:42:13 +03:00
avoid pruning windows/tabs while user activity is in progress
This caused "window removed" messages to appear in the log for some slow/broken muxer configurations, which then masked surfacing of the real problem.
This commit is contained in:
parent
b058ac9170
commit
a9b50267e9
@ -50,10 +50,12 @@ impl FrontEnd for GuiFrontEnd {
|
||||
fn run_forever(&self) -> anyhow::Result<()> {
|
||||
self.connection
|
||||
.schedule_timer(std::time::Duration::from_millis(200), move || {
|
||||
let mux = Mux::get().unwrap();
|
||||
mux.prune_dead_windows();
|
||||
if mux.is_empty() && crate::frontend::activity::Activity::count() == 0 {
|
||||
Connection::get().unwrap().terminate_message_loop();
|
||||
if crate::frontend::activity::Activity::count() == 0 {
|
||||
let mux = Mux::get().unwrap();
|
||||
mux.prune_dead_windows();
|
||||
if mux.is_empty() {
|
||||
Connection::get().unwrap().terminate_message_loop();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user