This commit is contained in:
Mahdi 2023-12-11 19:55:45 +00:00 committed by GitHub
commit eb1f8cc9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,9 +63,8 @@ func (s *Service) NewConnection(ctx context.Context, conn net.Conn, metadata M.M
}
var group task.Group
group.Append0(func(_ context.Context) error {
var stream net.Conn
for {
stream, err = session.Accept()
stream, err := session.Accept()
if err != nil {
return err
}