()
| 17 | } |
| 18 | |
| 19 | func (t *Tunnel) Close() { |
| 20 | t.closedMutex.Lock() |
| 21 | defer t.closedMutex.Unlock() |
| 22 | |
| 23 | if t.closed { |
| 24 | return |
| 25 | } |
| 26 | |
| 27 | t.localConn.Close(3000, "Go away!") |
| 28 | close(t.closeChan) |
| 29 | t.closed = true |
| 30 | } |
| 31 | |
| 32 | func (t *Tunnel) CloseNotify() chan bool { |
| 33 | return t.closeChan |
no outgoing calls
no test coverage detected