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

Method Shutdown

internal/pluginhost/client_guard.go:54–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (c *guardedPluginClient) Shutdown() {
55 if c == nil {
56 return
57 }
58
59 var inner pluginClient
60 c.mu.Lock()
61 if c.closed {
62 for c.calls > 0 {
63 c.cond.Wait()
64 }
65 c.mu.Unlock()
66 return
67 }
68 c.closed = true
69 for c.calls > 0 {
70 c.cond.Wait()
71 }
72 inner = c.inner
73 c.inner = nil
74 c.mu.Unlock()
75
76 if inner != nil {
77 inner.Shutdown()
78 }
79}

Callers

nothing calls this directly

Calls 1

ShutdownMethod · 0.95

Tested by

no test coverage detected