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 {
|
if lc, ok := left.(interface {
|
||||||
CloseWrite() error
|
CloseWrite() error
|
||||||
}); ok {
|
}); ok {
|
||||||
if e := lc.CloseWrite(); err1 == nil && e != io.EOF {
|
if e := lc.CloseWrite(); err == nil && e != io.EOF {
|
||||||
err = e
|
err = e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user