]> khamidou — GitHub mirrors - electron.git/commitdiff
Should force the embed thread to quit when terminating.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jul 2013 08:55:09 +0000 (16:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jul 2013 08:55:09 +0000 (16:55 +0800)
common/node_bindings.cc

index 0a4134173b81db804ec5951eb527a8b31b7c83c5..2605d263e9b829242eca0f5387a97264f966ed71 100644 (file)
@@ -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_);
 }