diff --git a/stream.go b/stream.go index ed06d69..3be1291 100644 --- a/stream.go +++ b/stream.go @@ -291,6 +291,7 @@ func (s *Stream) WriteSCTP(p []byte, ppi PayloadProtocolIdentifier) (int, error) s.sequenceNumber-- } s.lock.Unlock() + n = 0 } if s.association.isBlockWrite() { s.writeLock.Unlock()