We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b8b50 commit f455cd8Copy full SHA for f455cd8
twin/screen-setup-windows.go
@@ -54,7 +54,19 @@ func (r *interruptableReader) waitForReadReady(timeout time.Duration) (ready boo
54
}
55
56
if fileType == windows.FILE_TYPE_PIPE {
57
- return waitForPipeReadReady(windows.Handle(r.base.Fd()))
+ ready, err = waitForPipeReadReady(windows.Handle(r.base.Fd()))
58
+ if ready || err != nil {
59
+ return
60
+ }
61
+
62
+ time.Sleep(timeout / 2)
63
64
65
66
67
68
69
70
71
72
timeoutMillis := uint32(timeout.Milliseconds())
0 commit comments