(BROKEN) tried to fix, moving on

This commit is contained in:
Ben
2018-12-21 17:25:09 +00:00
parent 2c79ba5a7a
commit 42d5090c3d
4 changed files with 18 additions and 5 deletions

View File

@@ -170,7 +170,10 @@ std::vector<double> CPU::CPU_CORE_PERCENT() {
}
CPU::~CPU() {
this->m_isPolling = false;
m_pollThread->join();
std::cout << "CPU Destructed" << std::endl;
if (this->m_isPolling) {
this->m_isPolling = false;
m_pollThread->join();
}
delete m_pollThread;
}