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 0a41341..2605d26 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_);
 }