()
| 298 | c.Abort() |
| 299 | if c.engine != nil { |
| 300 | c.engine.Shutdown() |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | func (c *SessionController) Clear() { |
| 305 | c.Abort() |
| 306 | c.engine.Reset() |
| 307 | c.stateMu.Lock() |
| 308 | c.state = nil |
| 309 | c.stateMu.Unlock() |
| 310 | c.ui.MountStateSnapshot(nil) |
| 311 | } |
| 312 | |
| 313 | func (c *SessionController) Save() error { |
| 314 | c.stateMu.Lock() |
| 315 | state := c.state |
| 316 | c.stateMu.Unlock() |
| 317 | if state == nil { |
| 318 | return nil |
| 319 | } |
no test coverage detected