ing
This commit is contained in:
parent
9f2ff9438c
commit
cd50707b16
|
@ -150,6 +150,8 @@ func (s *AuthServlets) OnDisconnect(servletCtx server.ServletCtx) {
|
|||
}
|
||||
|
||||
func (s *AuthServlets) handleSubscribe(serverCtx server.ServerCtx, subscribeChan <-chan *ogs.Message) {
|
||||
var sessions []*ogrs.Session
|
||||
|
||||
LOOP:
|
||||
for {
|
||||
select {
|
||||
|
@ -160,7 +162,11 @@ LOOP:
|
|||
|
||||
switch msg.TargetType {
|
||||
case ogs.PROBE:
|
||||
sessions := s.getAuthSessions(msg.Targets)
|
||||
sessions = s.getAuthSessions(msg.Targets)
|
||||
default:
|
||||
logging.Logger().Warnf("Subscriber: Unknown TargetType %s", msg.TargetType)
|
||||
continue LOOP
|
||||
}
|
||||
if nil == sessions || 0 == len(sessions) {
|
||||
continue LOOP
|
||||
}
|
||||
|
@ -175,7 +181,6 @@ LOOP:
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (s *AuthServlets) getAuthSessions(sessionIDs []string) []*ogrs.Session {
|
||||
var sessions []*ogrs.Session
|
||||
|
|
Loading…
Reference in New Issue
Block a user