Fixed command dropping

This commit is contained in:
WolverinDEV 2020-03-28 22:49:22 +01:00
parent b7b22dc89e
commit f596151c42

View File

@ -267,7 +267,7 @@ bool VoiceClientConnection::next_reassembled_command(unique_lock<std::recursive_
/* handle commands before command low packets */
for(auto& buf : this->_command_fragment_buffers) {
unique_lock ring_lock(buf.buffer_lock, try_to_lock);
unique_lock ring_lock(buf.buffer_lock/*, try_to_lock */); //Perm lock the buffer else, may command wount get handeled. Because we've more left, but say we waven't
if(!ring_lock.owns_lock()) continue;
if(buf.front_set()) {