Should force the embed thread to quit when terminating.

This commit is contained in:
Cheng Zhao 2013-07-23 16:55:09 +08:00
parent 7d61dcdde1
commit 767354476b

View 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_);
}