CoreAV::~CoreAV() { for (const auto& call : calls) { cancelCall(call.first); } killTimerFromThread(); toxav_kill(toxav); coreavThread->exit(0); while (coreavThread->isRunning()) { qApp->processEvents(); coreavThread->wait(100); } }
CoreAV::~CoreAV() { for (const ToxFriendCall& call : calls) cancelCall(call.callId); killTimerFromThread(); toxav_kill(toxav); coreavThread->exit(0); while (coreavThread->isRunning()) { qApp->processEvents(); coreavThread->wait(100); } }