forked from quic-go/quic-go
don't enqueue send stream for sending on duplicate Close calls (#4815)
This commit is contained in:
@@ -398,7 +398,7 @@ func (s *sendStream) isNewlyCompleted() bool {
|
||||
|
||||
func (s *sendStream) Close() error {
|
||||
s.mutex.Lock()
|
||||
if s.closeForShutdownErr != nil {
|
||||
if s.closeForShutdownErr != nil || s.finishedWriting {
|
||||
s.mutex.Unlock()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user