Commit 492f09ad authored by Michal Čihař's avatar Michal Čihař

Avoid controlling pty if no pty is being used

parent c0363816
......@@ -133,7 +133,8 @@ class ProxySSHSession(SSHSessionForUnixConchUser):
gid=None,
usePTY=self.ptyTuple,
)
fcntl.ioctl(self.pty.fileno(), tty.TIOCSWINSZ, struct.pack('4H', *self.winSize))
if self.ptyTuple:
fcntl.ioctl(self.pty.fileno(), tty.TIOCSWINSZ, struct.pack('4H', *self.winSize))
self.avatar.conn.transport.transport.setTcpNoDelay(1)
@property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment