mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Better checks before cleanupCall
This commit is contained in:
parent
d8e9b7d77e
commit
89e9b18cf3
|
@ -431,6 +431,7 @@ void Core::onAvEnd(void* _toxav, int32_t call_index, void* core)
|
|||
|
||||
emit static_cast<Core*>(core)->avEnd(friendId, call_index);
|
||||
|
||||
if (calls[call_index].active)
|
||||
cleanupCall(call_index);
|
||||
}
|
||||
|
||||
|
@ -471,6 +472,7 @@ void Core::onAvRequestTimeout(void* _toxav, int32_t call_index, void* core)
|
|||
|
||||
emit static_cast<Core*>(core)->avRequestTimeout(friendId, call_index);
|
||||
|
||||
if (calls[call_index].active)
|
||||
cleanupCall(call_index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user