ing
This commit is contained in:
parent
6c999b5798
commit
366738c48d
|
@ -145,6 +145,9 @@ func (s *WebappServlets) handleSubscribe(serverCtx server.ServerCtx, subscribeCh
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case msg, ok := <-subscribeChan:
|
case msg, ok := <-subscribeChan:
|
||||||
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
switch msg.TargetType {
|
switch msg.TargetType {
|
||||||
case ogs.MEMBER:
|
case ogs.MEMBER:
|
||||||
for _, targetID := range msg.Targets {
|
for _, targetID := range msg.Targets {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user