mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Stop calls after timeout
This commit is contained in:
parent
f7dcb1712d
commit
a83c35c95b
4
core.cpp
4
core.cpp
|
@ -1028,6 +1028,8 @@ void Core::onAvRequestTimeout(int32_t call_index, void* core)
|
||||||
}
|
}
|
||||||
qDebug() << QString("Core: AV request timeout with %1").arg(friendId);
|
qDebug() << QString("Core: AV request timeout with %1").arg(friendId);
|
||||||
|
|
||||||
|
cleanupCall(call_index);
|
||||||
|
|
||||||
emit static_cast<Core*>(core)->avRequestTimeout(friendId, call_index);
|
emit static_cast<Core*>(core)->avRequestTimeout(friendId, call_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1041,6 +1043,8 @@ void Core::onAvPeerTimeout(int32_t call_index, void* core)
|
||||||
}
|
}
|
||||||
qDebug() << QString("Core: AV peer timeout with %1").arg(friendId);
|
qDebug() << QString("Core: AV peer timeout with %1").arg(friendId);
|
||||||
|
|
||||||
|
cleanupCall(call_index);
|
||||||
|
|
||||||
emit static_cast<Core*>(core)->avPeerTimeout(friendId, call_index);
|
emit static_cast<Core*>(core)->avPeerTimeout(friendId, call_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user