1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

clientpane: delay before re-sync

The fix for f478672fd8 regressed
the one for b398eaf656.

Compensate by adding a short delay.

refs: #1752
This commit is contained in:
Wez Furlong 2022-04-05 07:29:57 -07:00
parent de615080b2
commit 9ee2d0f6b2

View File

@ -382,7 +382,11 @@ impl Pane for ClientPane {
.await?;
// Arrange to resync the layout, to avoid artifacts
// <https://github.com/wez/wezterm/issues/1277>
// <https://github.com/wez/wezterm/issues/1277>.
// We need a short delay to avoid racing with the observable
// effects of killing the pane.
// <https://github.com/wez/wezterm/issues/1752#issuecomment-1088269363>
smol::Timer::after(std::time::Duration::from_millis(200)).await;
let mux = Mux::get().expect("called on main thread");
let client_domain = mux
.get_domain(local_domain_id)