Compare commits

...

1 Commits

Author SHA1 Message Date
Jakob Borg
2145b3701d lib/connections: Correct race on loop variable (fixes #8320) (#8321) 2022-05-04 18:17:03 +02:00

View File

@@ -228,8 +228,8 @@ func NewService(cfg config.Wrapper, myID protocol.DeviceID, mdl Model, tlsCfg *t
}
func (s *service) handleConns(ctx context.Context) error {
var c internalConn
for {
var c internalConn
select {
case <-ctx.Done():
return ctx.Err()