remove closed streams from BlockedManager

fixes #120
This commit is contained in:
Marten Seemann
2016-05-21 19:19:41 +07:00
parent 398e2f3530
commit bf4aa2dce9
2 changed files with 17 additions and 0 deletions

View File

@@ -605,6 +605,9 @@ func (s *Session) garbageCollectStreams() {
if v == nil {
continue
}
if v.finishedWriting() {
s.blockedManager.RemoveBlockedStream(k)
}
if v.finished() {
s.streams[k] = nil
}