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

Method Stop

sdk/cliproxy/usage/manager.go:204–217  ·  view source on GitHub ↗

Stop stops the dispatcher and drains the queue.

()

Source from the content-addressed store, hash-verified

202
203// Stop stops the dispatcher and drains the queue.
204func (m *Manager) Stop() {
205 if m == nil {
206 return
207 }
208 m.stopOnce.Do(func() {
209 if m.cancel != nil {
210 m.cancel()
211 }
212 m.mu.Lock()
213 m.closed = true
214 m.mu.Unlock()
215 m.cond.Broadcast()
216 })
217}
218
219// Register appends a plugin to the delivery list.
220func (m *Manager) Register(plugin Plugin) {

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected