MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / stopServerUpdateTimer

Method stopServerUpdateTimer

internal/watcher/clients.go:442–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440}
441
442func (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
452func (w *Watcher) triggerServerUpdate(cfg *config.Config) {
453 if w == nil || w.reloadCallback == nil || cfg == nil {

Callers 1

StopMethod · 0.95

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected