@ -28,11 +28,15 @@ var ErrInitStart = errors.New("init from")
typeconnstruct{
net.Conn
wg*sync.WaitGroup
isclosebool
}
func(cconn)Close()error{
err:=c.Conn.Close()
if!c.isclose{
c.wg.Done()
c.isclose=true
}
returnerr
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.