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:
@@ -372,8 +372,6 @@ func (s *Server) serve(l net.Listener, mode SocketMode) {
|
||||
}
|
||||
go sc.Handle()
|
||||
}
|
||||
|
||||
l.Close()
|
||||
}
|
||||
|
||||
type Conn struct {
|
||||
|
||||
Reference in New Issue
Block a user