(s *session)
| 128 | } |
| 129 | |
| 130 | func (g *Gate) offline(s *session) { |
| 131 | s.offline() |
| 132 | g.Lock() |
| 133 | delete(g.ids, s.id) |
| 134 | g.Unlock() |
| 135 | } |
| 136 | |
| 137 | func (g *Gate) getOnlineSession(ctx context.Context) (*session, error) { |
| 138 | log.Debug("Gate getOnlineSession") |