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

Method close

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

Source from the content-addressed store, hash-verified

96}
97
98func (t *TCPClient) close() {
99 t.lock.Lock()
100 defer t.lock.Unlock()
101 if t.conn != nil {
102 _ = t.conn.Close()
103 t.conn = nil
104 }
105}
106
107func (t *TCPClient) invokePlannedDisconnect() {
108 t.lock.RLock()

Callers 2

CloseMethod · 0.95
unexpectedCloseMethod · 0.95

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected