MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / invokePlannedDisconnect

Method invokePlannedDisconnect

client/internal/network/conn.go:107–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (t *TCPClient) invokePlannedDisconnect() {
108 t.lock.RLock()
109 defer t.lock.RUnlock()
110 if t.plannedDisconnect != nil && t.connected {
111 go t.plannedDisconnect(t)
112 t.connected = false
113 }
114}
115
116func (t *TCPClient) invokeUnexpectedDisconnect(err error) {
117 t.lock.RLock()

Callers 1

CloseMethod · 0.95

Calls 1

plannedDisconnectMethod · 0.80

Tested by

no test coverage detected