()
| 213 | } |
| 214 | |
| 215 | func (s *Session) countSub() int { |
| 216 | if s.multi != nil { |
| 217 | return s.multi.countSub() |
| 218 | } |
| 219 | return len(s.subs) |
| 220 | } |
| 221 | |
| 222 | // Inform topics that the session is being terminated. |
| 223 | // No need to check for s.multi because it's not called for PROXY sessions. |