Skip to content

Commit

Permalink
attempt to fix linux shutdown
Browse files Browse the repository at this point in the history
Former-commit-id: 01f0fd3
  • Loading branch information
martonp96 committed Dec 11, 2020
1 parent 1c93fd3 commit a027524
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CNodeScriptRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ void CNodeScriptRuntime::OnDispose()
} while (uv_loop_alive(uv_default_loop()));
}*/

platform->DrainTasks(isolate);
platform->CancelPendingDelayedTasks(isolate);
platform->UnregisterIsolate(isolate);

v8::V8::Dispose();
v8::V8::ShutdownPlatform();
Expand Down

0 comments on commit a027524

Please sign in to comment.