forked from ms/transocks
Fix a panic on error.
This commit is contained in:
parent
322a89746a
commit
781b3cceb5
@ -100,7 +100,7 @@ func (s *Server) handleConnection(c *net.TCPConn) {
|
|||||||
for i := 0; i < 2; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
e := <-ch
|
e := <-ch
|
||||||
if e != nil {
|
if e != nil {
|
||||||
log.Error(err.Error(), nil)
|
log.Error(e.Error(), nil)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user