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

This commit is contained in:
2018-12-03 20:11:15 +01:00
parent ac2b79e88a
commit 89a1c2366c
+1
View File
@@ -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()