aboutsummaryrefslogtreecommitdiff
path: root/src/node_http2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r--src/node_http2.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 8dd222a692..d6df93cf38 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -1813,7 +1813,9 @@ inline void Http2Stream::Close(int32_t code) {
}
int Http2Stream::DoShutdown(ShutdownWrap* req_wrap) {
- CHECK(!this->IsDestroyed());
+ if (IsDestroyed())
+ return UV_EPIPE;
+
{
Http2Scope h2scope(this);
flags_ |= NGHTTP2_STREAM_FLAG_SHUT;