예제 #1
0
파일: coreav.cpp 프로젝트: barry-ran/qTox
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);
    }
}
예제 #2
0
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);
    }
}