loop variable captured (#945)

This commit is contained in:
cnderrauber
2022-08-23 14:27:21 +08:00
committed by GitHub
parent c20a91d2b2
commit 0b42a8f2c6
+2 -1
View File
@@ -214,8 +214,9 @@ func (s *LivekitServer) Start() error {
httpGroup := &errgroup.Group{}
for _, ln := range listeners {
l := ln
httpGroup.Go(func() error {
return s.httpServer.Serve(ln)
return s.httpServer.Serve(l)
})
}
go func() {