mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
check if call is active before mute
check if call is active before mute. Prevents segfault.
This commit is contained in:
parent
cd0f8d4d58
commit
faf59cea9c
@ -273,7 +273,9 @@ void Core::decreaseVideoBusyness()
|
|||||||
|
|
||||||
void Core::micMuteToggle(int callId)
|
void Core::micMuteToggle(int callId)
|
||||||
{
|
{
|
||||||
|
if (calls[callId].active) {
|
||||||
calls[callId].muteMic = !calls[callId].muteMic;
|
calls[callId].muteMic = !calls[callId].muteMic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::onAvCancel(void* _toxav, int32_t callId, void* core)
|
void Core::onAvCancel(void* _toxav, int32_t callId, void* core)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user