fix: build (#12313)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-07-16 09:28:24 +08:00
committed by GitHub
parent e31b04b6a7
commit 661be6ae36

View File

@@ -501,7 +501,9 @@ impl TerminalSession {
// 3. macOS
// No stuck cases have been found so far, more testing is needed.
#[cfg(any(target_os = "windows", target_os = "linux"))]
self.pty_pair = None;
{
self.pty_pair = None;
}
// Wait for threads to finish
// The reader thread should join before the writer thread on Windows.