diff --git a/server.go b/server.go index b97a97d..2b63959 100644 --- a/server.go +++ b/server.go @@ -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 }