forked from quic-go/quic-go
return an error when calling OpenStream after the session was closed
fixes #615
This commit is contained in:
@@ -166,6 +166,9 @@ func (m *streamsMap) OpenStream() (*stream, error) {
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
|
||||
if m.closeErr != nil {
|
||||
return nil, m.closeErr
|
||||
}
|
||||
return m.openStreamImpl()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user