We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f602aab commit 7abe1d8Copy full SHA for 7abe1d8
src/node_http2.cc
@@ -1787,7 +1787,8 @@ void Http2Stream::Destroy() {
1787
// We can destroy the stream now if there are no writes for it
1788
// already on the socket. Otherwise, we'll wait for the garbage collector
1789
// to take care of cleaning up.
1790
- if (!stream->session()->HasWritesOnSocketForStream(stream))
+ if (stream->session() == nullptr ||
1791
+ !stream->session()->HasWritesOnSocketForStream(stream))
1792
delete stream;
1793
}, this, this->object());
1794
0 commit comments