1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
tux3 2015-06-06 21:09:32 +02:00
parent 036d307302
commit d76fb459cf
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -233,9 +233,7 @@ void Core::cancelCall(int32_t callId, uint32_t friendId)
void Core::cleanupCall(int32_t callId)
{
if (!calls[callId].active)
return;
//assert(calls[callId].active); /// TODO: Fix this, see #1817
assert(!calls[callId].active);
qDebug() << QString("cleaning up call %1").arg(callId);
calls[callId].active = false;
disconnect(calls[callId].sendAudioTimer,0,0,0);
@ -490,6 +488,7 @@ void Core::onAvPeerTimeout(void* _toxav, int32_t call_index, void* core)
emit static_cast<Core*>(core)->avPeerTimeout(friendId, call_index);
if (calls[call_index].active)
cleanupCall(call_index);
}