MCPcopy Create free account
hub / github.com/koding/kite / Close

Method Close

tunnelproxy/tunnel.go:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (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
32func (t *Tunnel) CloseNotify() chan bool {
33 return t.closeChan

Callers 3

RunMethod · 0.95
JoinStreamsFunction · 0.45
CloseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected