Fix a goroutine leak

This commit is contained in:
Qian Wang 2019-07-27 21:38:08 +01:00
parent 1099b558f1
commit 6fc48c5dae
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}