1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Remove unreachable code, and don't leak contexts

This patch performs some minor cleanups for things detected by "go vet":

 - Remove one line of unreachable code.
 - Don't leak contexts until their deadline expires, cancel them.
This commit is contained in:
Alberto Bertogli
2016-09-25 22:02:08 +01:00
parent 0995eac474
commit 04dd8b9534
3 changed files with 4 additions and 4 deletions

View File

@@ -372,8 +372,6 @@ func (s *Server) serve(l net.Listener, mode SocketMode) {
}
go sc.Handle()
}
l.Close()
}
type Conn struct {