File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -766,6 +766,7 @@ void Http2Session::Close(uint32_t code, bool socket_closed) {
766
766
// If we are writing we will get to make the callback in OnStreamAfterWrite.
767
767
if ((flags_ & SESSION_STATE_WRITE_IN_PROGRESS) == 0 ) {
768
768
Debug (this , " make done session callback" );
769
+ HandleScope scope (env ()->isolate ());
769
770
MakeCallback (env ()->ondone_string (), 0 , nullptr );
770
771
if (stream_ != nullptr ) stream_->ReadStart ();
771
772
}
@@ -1569,12 +1570,12 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
1569
1570
!(flags_ & SESSION_STATE_WRITE_IN_PROGRESS) &&
1570
1571
(nghttp2_session_want_read (session_) ||
1571
1572
(flags_ & SESSION_STATE_CLOSED) != 0 )) {
1572
- Debug (this , " OnStreamAfterWrite read start" );
1573
1573
flags_ &= ~SESSION_STATE_READING_STOPPED;
1574
1574
stream_->ReadStart ();
1575
1575
}
1576
1576
1577
1577
if ((flags_ & SESSION_STATE_CLOSED) != 0 ) {
1578
+ HandleScope scope (env ()->isolate ());
1578
1579
MakeCallback (env ()->ondone_string (), 0 , nullptr );
1579
1580
return ;
1580
1581
}
You can’t perform that action at this time.
0 commit comments