Skip to content

stream: fix destroy(err, cb) regression

Fixed a regression that caused the callback passed to destroy() to not be called if the stream was already destroyed. This caused a regression on the ws module in CITGM, as discovered by @refack.

Fixes: https://github.com/websockets/ws/issues/1118

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

stream, net

Merge request reports

Loading