Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(groupaudio): avoid deadlock when ending groupcall
Browse files Browse the repository at this point in the history
The offending statement caused a deadlock, because the audioLock was
locked twice by the audio thread.
  • Loading branch information
sudden6 committed Apr 24, 2016
1 parent 356543c commit afcd146
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/coreav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,9 @@ bool CoreAV::sendGroupCallAudio(int groupId, const int16_t *pcm, size_t samples,

ToxGroupCall& call = groupCalls[groupId];

if (call.inactive || call.muteMic || !Audio::getInstance().isInputReady())
if (call.inactive || call.muteMic)
return true;


if (toxav_group_send_audio(toxav_get_tox(toxav), groupId, pcm, samples, chans, rate) != 0)
qDebug() << "toxav_group_send_audio error";

Expand Down

0 comments on commit afcd146

Please sign in to comment.