closeAndRemoveSession closes and removes the session.
(x11session *x11Session)
| 216 | |
| 217 | // closeAndRemoveSession closes and removes the session. |
| 218 | func (x *x11Forwarder) closeAndRemoveSession(x11session *x11Session) { |
| 219 | _ = x11session.listener.Close() |
| 220 | x.mu.Lock() |
| 221 | delete(x.sessions, x11session) |
| 222 | x.mu.Unlock() |
| 223 | } |
| 224 | |
| 225 | // createX11Session creates an X11 forwarding session. |
| 226 | func (x *x11Forwarder) createX11Session(ctx context.Context, sshSession ssh.Session) (*x11Session, error) { |
no test coverage detected