small fix

This commit is contained in:
Jinhao 2020-05-15 03:17:43 +08:00
parent afee7d1ed6
commit f2d74fbc86

View File

@ -677,6 +677,8 @@ namespace nana
thr = nullptr;
}
p->thr_variable = nullptr;
threads_.erase(i);
if (thr && thr->thread && thr->thread->joinable())
thr->thread->join();