Browse Source

changes: Fixed crash on disconnect when there are more than one client connected.

module-madness-pointers
Gisle Aune 5 years ago
parent
commit
89a1c2366c
  1. 1
      models/changes/subscribe.go

1
models/changes/subscribe.go

@ -40,6 +40,7 @@ func Subscribe(ctx context.Context, keys []models.ChangeKey, wildcard bool) <-ch
for i := range subList {
if subList[i] == sub {
subList = append(subList[:i], subList[i+1:]...)
break
}
}
subMutex.Unlock()

Loading…
Cancel
Save