onBackgroundTimer marks background session as foreground and informs topics it's subscribed to.
()
| 1387 | |
| 1388 | // onBackgroundTimer marks background session as foreground and informs topics it's subscribed to. |
| 1389 | func (s *Session) onBackgroundTimer() { |
| 1390 | s.subsLock.RLock() |
| 1391 | defer s.subsLock.RUnlock() |
| 1392 | |
| 1393 | update := &sessionUpdate{sess: s} |
| 1394 | for _, sub := range s.subs { |
| 1395 | if sub.supd != nil { |
| 1396 | sub.supd <- update |
| 1397 | } |
| 1398 | } |
| 1399 | } |
no outgoing calls
no test coverage detected