MCPcopy
hub / github.com/name5566/leaf / Close

Method Close

network/tcp_client.go:120–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (client *TCPClient) Close() {
121 client.Lock()
122 client.closeFlag = true
123 for conn := range client.conns {
124 conn.Close()
125 }
126 client.conns = nil
127 client.Unlock()
128
129 client.wg.Wait()
130}

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected