2
0
mirror of https://github.com/stefan01/transocks.git synced 2025-02-22 03:30:45 +07:00

Fix a panic on error.

This commit is contained in:
ymmt2005 2016-03-10 20:48:43 +09:00
parent 322a89746a
commit 781b3cceb5

View File

@ -100,7 +100,7 @@ func (s *Server) handleConnection(c *net.TCPConn) {
for i := 0; i < 2; i++ {
e := <-ch
if e != nil {
log.Error(err.Error(), nil)
log.Error(e.Error(), nil)
break
}
}