()
| 96 | } |
| 97 | |
| 98 | func (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 | |
| 107 | func (t *TCPClient) invokePlannedDisconnect() { |
| 108 | t.lock.RLock() |
no test coverage detected