Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: ensure writable.destroy() emits error once #26057

Closed
wants to merge 1 commit into from

Commits on Feb 12, 2019

  1. stream: ensure writable.destroy() emits error once

    Prevent the `'error'` event from being emitted multiple times if
    `writable.destroy()` is called with an error before the `_destroy()`
    callback is called.
    
    Emit the first error, discard all others.
    
    Fixes: nodejs#26015
    lpinca committed Feb 12, 2019
    Copy the full SHA
    bfb0cef View commit details
    Browse the repository at this point in the history