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

Method Stop

internal/watcher/watcher.go:128–134  ·  view source on GitHub ↗

Stop stops the file watcher

()

Source from the content-addressed store, hash-verified

126
127// Stop stops the file watcher
128func (w *Watcher) Stop() error {
129 w.stopped.Store(true)
130 w.stopDispatch()
131 w.stopConfigReloadTimer()
132 w.stopServerUpdateTimer()
133 return w.watcher.Close()
134}
135
136// SetConfig updates the current configuration
137func (w *Watcher) SetConfig(cfg *config.Config) {

Callers 4

TestStartAndStopSuccessFunction · 0.95
defaultWatcherFactoryFunction · 0.95

Calls 4

stopDispatchMethod · 0.95
stopConfigReloadTimerMethod · 0.95
stopServerUpdateTimerMethod · 0.95
CloseMethod · 0.65

Tested by 3

TestStartAndStopSuccessFunction · 0.76