Skip to content

Commit b9687a2

Browse files
committed
Always respond to PTY requests
Fixes #13
1 parent 7bc24bc commit b9687a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

session.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ func (sess *session) handleRequests(reqs <-chan *gossh.Request) {
160160
if ok {
161161
sess.pty = &Pty{Window{width, height}}
162162
sess.winch = make(chan Window)
163-
req.Reply(true, nil)
164163
}
164+
165+
req.Reply(ok, nil)
165166
case "window-change":
166167
if sess.pty == nil {
167168
req.Reply(false, nil)

0 commit comments

Comments
 (0)