Fix a goroutine leak

pull/71/head
Qian Wang 5 years ago
parent 1099b558f1
commit 6fc48c5dae

@ -112,6 +112,7 @@ func (stream *Stream) Write(in []byte) (n int, err error) {
func (stream *Stream) passiveClose() {
stream.heliumMask.Do(func() { close(stream.die) })
stream.session.delStream(stream.id)
stream.sortedBuf.Close()
//log.Printf("%v passive closing\n", stream.id)
}

Loading…
Cancel
Save