mirror of
https://github.com/nadoo/glider.git
synced 2025-04-22 04:02:07 +08:00
fix error
This commit is contained in:
parent
ab4b93f8b6
commit
400a2e32f6
@ -69,7 +69,7 @@ func Relay(left, right net.Conn) error {
|
||||
if lc, ok := left.(interface {
|
||||
CloseWrite() error
|
||||
}); ok {
|
||||
if e := lc.CloseWrite(); err1 == nil && e != io.EOF {
|
||||
if e := lc.CloseWrite(); err == nil && e != io.EOF {
|
||||
err = e
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user