| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent edaa2ee commit 6f8ef2c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -279,8 +279,13 @@ void PerIsolatePlatformData::Shutdown() { | |||
| 279 | 279 | if (flush_tasks_ == nullptr) | |
| 280 | 280 | return; | |
| 281 | 281 | ||
| 282 | - CHECK_NULL(foreground_delayed_tasks_.Pop()); | ||
| 283 | - CHECK_NULL(foreground_tasks_.Pop()); | ||
| 282 | + // While there should be no V8 tasks in the queues at this point, it is | ||
| 283 | + // possible that Node.js-internal tasks from e.g. the inspector are still | ||
| 284 | + // lying around. We clear these queues and ignore the return value, | ||
| 285 | + // effectively deleting the tasks instead of running them. | ||
| 286 | + foreground_delayed_tasks_.PopAll(); | ||
| 287 | + foreground_tasks_.PopAll(); | ||
| 288 | + | ||
| 284 | 289 | CancelPendingDelayedTasks(); | |
| 285 | 290 | ||
| 286 | 291 | ShutdownCbList* copy = new ShutdownCbList(std::move(shutdown_callbacks_)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments