mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
clientpane: delay before re-sync
The fix forf478672fd8
regressed the one forb398eaf656
. Compensate by adding a short delay. refs: #1752
This commit is contained in:
parent
de615080b2
commit
9ee2d0f6b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user