| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b77327 commit 38cfb70
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -406,7 +406,11 @@ void Http2Session::Close() { | |||
| 406 | 406 | ||
| 407 | 407 | while (!outstanding_pings_.empty()) { | |
| 408 | 408 | Http2Session::Http2Ping* ping = PopPing(); | |
| 409 | - ping->Done(false); | ||
| 409 | + // Since this method may be called from GC, calling into JS directly | ||
| 410 | + // is not allowed. | ||
| 411 | + env()->SetImmediate([](Environment* env, void* data) { | ||
| 412 | + static_cast<Http2Session::Http2Ping*>(data)->Done(false); | ||
| 413 | + }, static_cast<void*>(ping)); | ||
| 410 | 414 | } | |
| 411 | 415 | ||
| 412 | 416 | Stop(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments