Browse Source

join the parse_thread only if its joinable (created in this case).

merge-requests/365/head
eidheim 11 years ago
parent
commit
394d6284eb
  1. 3
      juci/source.cc

3
juci/source.cc

@ -276,7 +276,8 @@ Source::Controller::~Controller() {
parse_thread_stop=true; parse_thread_stop=true;
parsing.lock(); //Be sure not to destroy while still parsing with libclang parsing.lock(); //Be sure not to destroy while still parsing with libclang
parsing.unlock(); parsing.unlock();
parse_thread.join(); if(parse_thread.joinable())
parse_thread.join();
} }
void Source::Controller::OnNewEmptyFile() { void Source::Controller::OnNewEmptyFile() {

Loading…
Cancel
Save