From: Cheng Zhao Date: Tue, 23 Jul 2013 08:55:09 +0000 (+0800) Subject: Should force the embed thread to quit when terminating. X-Git-Tag: v0.1.6~17 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=767354476b6fac7a4f9e9f5552adf2cfc1a9eb19;p=electron.git Should force the embed thread to quit when terminating. --- diff --git a/common/node_bindings.cc b/common/node_bindings.cc index 0a413417..2605d263 100644 --- a/common/node_bindings.cc +++ b/common/node_bindings.cc @@ -39,6 +39,7 @@ NodeBindings::NodeBindings(bool is_browser) NodeBindings::~NodeBindings() { // Clear uv. embed_closed_ = true; + WakeupEmbedThread(); uv_thread_join(&embed_thread_); uv_sem_destroy(&embed_sem_); }