Merge pull request #138 from iamqizhao/non-proto

add a missing unlock
This commit is contained in:
Qi Zhao
2015-03-25 18:00:26 -07:00

View File

@ -609,6 +609,7 @@ func (t *http2Server) closeStream(s *Stream) {
t.mu.Unlock() t.mu.Unlock()
s.mu.Lock() s.mu.Lock()
if s.state == streamDone { if s.state == streamDone {
s.mu.Unlock()
return return
} }
s.state = streamDone s.state = streamDone