Create new uv loop in each worker
This commit is contained in:
parent
69df934710
commit
d2f185bea5
2 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ WebWorkerObserver::~WebWorkerObserver() {
|
|||
void WebWorkerObserver::ContextCreated(v8::Local<v8::Context> context) {
|
||||
v8::Context::Scope context_scope(context);
|
||||
|
||||
node_bindings_->Initialize();
|
||||
// Start the embed thread.
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
|
||||
// Setup node environment for each window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue