()
| 254 | } |
| 255 | |
| 256 | func (s *Session) closeGuacdConn() { |
| 257 | s.mu.Lock() |
| 258 | defer s.mu.Unlock() |
| 259 | if s.guacdConn != nil { |
| 260 | _ = s.guacdConn.Close() |
| 261 | s.guacdConn = nil |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | func (s *Session) timeoutLoop(ctx context.Context) { |
| 266 | ticker := time.NewTicker(30 * time.Second) |
no test coverage detected