mirror of https://github.com/pkg/sftp.git
a new server disconnect error point rather than EOF
This commit is contained in:
parent
59de31242c
commit
79ae5c2d53
2
conn.go
2
conn.go
|
@ -105,7 +105,7 @@ func (c *clientConn) putChannel(ch chan<- result, sid uint32) bool {
|
|||
select {
|
||||
case <-c.closed:
|
||||
// already closed with broadcastErr, return error on chan.
|
||||
ch <- result{err: c.err}
|
||||
ch <- result{err: errors.New("unexpected server disconnect")}
|
||||
return false
|
||||
default:
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue