Skip to content

Conversation

@Ujjansh05
Copy link

Recent small fix

  • Fix: prevent further processing when chunk stream is inactive.
  • File changed: lib/uploader.js
  • Change: added early return in Chunkable._write:
    if (!this.active) {
      done();
      return; // prevent further processing when the stream is inactive
    }
  • Why: avoids double-callbacks or processing remaining data when the stream has been marked inactive.
  • Risk: minimal — only affects the inactive path.
  • Suggested test: verify done() is called exactly once when active is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant