platform: Remove duplicated close

This commit is contained in:
hiddify
2024-02-06 09:21:41 +01:00
committed by 世界
parent 3c24411e14
commit f8c400cffc
5 changed files with 0 additions and 9 deletions

View File

@@ -58,7 +58,6 @@ func (c *CommandClient) handleGroupConn(conn net.Conn) {
}
func (s *CommandServer) handleGroupConn(conn net.Conn) error {
defer conn.Close()
ctx := connKeepAlive(conn)
for {
service := s.service
@@ -274,7 +273,6 @@ func (c *CommandClient) SetGroupExpand(groupTag string, isExpand bool) error {
}
func (s *CommandServer) handleSetGroupExpand(conn net.Conn) error {
defer conn.Close()
groupTag, err := rw.ReadVString(conn)
if err != nil {
return err