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

Method close

internal/pluginhost/model_stream_bridge.go:80–91  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

78}
79
80func (b *modelStreamBridge) close(id string) {
81 if b == nil || id == "" {
82 return
83 }
84 b.mu.Lock()
85 entry := b.streams[id]
86 delete(b.streams, id)
87 b.mu.Unlock()
88 if entry.cancel != nil {
89 entry.cancel()
90 }
91}

Callers 1

readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected