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
commit 661be6ae36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.