()
| 440 | } |
| 441 | |
| 442 | func (s *Session) cancelDiagnosticsRefresh() { |
| 443 | s.diagnosticsRefreshMu.Lock() |
| 444 | defer s.diagnosticsRefreshMu.Unlock() |
| 445 | if s.diagnosticsRefreshCancel != nil { |
| 446 | s.diagnosticsRefreshCancel() |
| 447 | s.logger.Log("Canceled scheduled diagnostics refresh") |
| 448 | s.diagnosticsRefreshCancel = nil |
| 449 | s.diagnosticsRefreshGeneration++ |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | func (s *Session) ScheduleSnapshotUpdate(reason UpdateReason) { |
| 454 | s.scheduledSnapshotUpdateMu.Lock() |
no test coverage detected