mirror of https://github.com/cbeuw/Cloak
Fix a goroutine leak
This commit is contained in:
parent
1099b558f1
commit
6fc48c5dae
|
|
@ -112,6 +112,7 @@ func (stream *Stream) Write(in []byte) (n int, err error) {
|
||||||
func (stream *Stream) passiveClose() {
|
func (stream *Stream) passiveClose() {
|
||||||
stream.heliumMask.Do(func() { close(stream.die) })
|
stream.heliumMask.Do(func() { close(stream.die) })
|
||||||
stream.session.delStream(stream.id)
|
stream.session.delStream(stream.id)
|
||||||
|
stream.sortedBuf.Close()
|
||||||
//log.Printf("%v passive closing\n", stream.id)
|
//log.Printf("%v passive closing\n", stream.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue