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

Method stopDispatch

internal/watcher/dispatcher.go:281–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279}
280
281func (w *Watcher) stopDispatch() {
282 if w.dispatchCancel != nil {
283 w.dispatchCancel()
284 w.dispatchCancel = nil
285 }
286 w.dispatchMu.Lock()
287 w.pendingOrder = nil
288 w.pendingUpdates = nil
289 if w.dispatchCond != nil {
290 w.dispatchCond.Broadcast()
291 }
292 w.dispatchMu.Unlock()
293 w.clientsMutex.Lock()
294 w.authQueue = nil
295 w.clientsMutex.Unlock()
296}
297
298func authEqual(a, b *coreauth.Auth) bool {
299 return reflect.DeepEqual(normalizeAuth(a), normalizeAuth(b))

Calls

no outgoing calls