Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Bound Space web push fan-out

Anand Baburajan29b1e26f58bd
diff --git a/server/space/controller/notifications.go b/server/space/controller/notifications.go
index 0fd0480d56..1720c542fd 100644
--- a/server/space/controller/notifications.go
+++ b/server/space/controller/notifications.go
@@ -237,9 +237,9 @@ func (n *SpaceWebPushSender) send(
}
waitGroup.Add(1)
+ n.sendSlots <- struct{}{}
go func(subscription repo.SpaceWebPushSubscriptionRecord, payload []byte) {
defer waitGroup.Done()
- n.sendSlots <- struct{}{}
defer func() { <-n.sendSlots }()
n.sendSubscription(event, payload, subscription, options)
}(subscription, encoded)