diff --git a/mux/src/domain.rs b/mux/src/domain.rs index ca9b19494..ba253ad39 100644 --- a/mux/src/domain.rs +++ b/mux/src/domain.rs @@ -223,7 +223,9 @@ impl LocalDomain { #[cfg(windows)] fn is_conpty(&self) -> bool { - self.pty_system + let pty_system = self.pty_system.lock(); + let pty_system: &dyn PtySystem = &**pty_system; + pty_system .downcast_ref::() .is_some() }