()
| 440 | } |
| 441 | |
| 442 | func (w *Watcher) stopServerUpdateTimer() { |
| 443 | w.serverUpdateMu.Lock() |
| 444 | defer w.serverUpdateMu.Unlock() |
| 445 | if w.serverUpdateTimer != nil { |
| 446 | w.serverUpdateTimer.Stop() |
| 447 | w.serverUpdateTimer = nil |
| 448 | } |
| 449 | w.serverUpdatePend = false |
| 450 | } |
| 451 | |
| 452 | func (w *Watcher) triggerServerUpdate(cfg *config.Config) { |
| 453 | if w == nil || w.reloadCallback == nil || cfg == nil { |