loop variable captured (#945)
This commit is contained in:
@@ -214,8 +214,9 @@ func (s *LivekitServer) Start() error {
|
|||||||
|
|
||||||
httpGroup := &errgroup.Group{}
|
httpGroup := &errgroup.Group{}
|
||||||
for _, ln := range listeners {
|
for _, ln := range listeners {
|
||||||
|
l := ln
|
||||||
httpGroup.Go(func() error {
|
httpGroup.Go(func() error {
|
||||||
return s.httpServer.Serve(ln)
|
return s.httpServer.Serve(l)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user