This commit is contained in:
crusader 2018-04-10 01:10:06 +09:00
parent 6c999b5798
commit 366738c48d

View File

@ -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 {