only use duplicate stream data error internally in the streamFrameSorter

This commit is contained in:
Marten Seemann 2018-08-26 09:49:11 +07:00
parent 8dc4b2d564
commit 53d76b6664
3 changed files with 18 additions and 13 deletions

View file

@ -209,7 +209,7 @@ func (s *receiveStream) handleStreamFrame(frame *wire.StreamFrame) error {
s.mutex.Lock()
defer s.mutex.Unlock()
if err := s.frameQueue.Push(frame.Data, frame.Offset, frame.FinBit); err != nil && err != errDuplicateStreamData {
if err := s.frameQueue.Push(frame.Data, frame.Offset, frame.FinBit); err != nil {
return err
}
s.signalRead()