Skip to content
Snippets Groups Projects
Commit e76caa94 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Used shared lock for chunk sending

parent 97a2e051
No related branches found
No related tags found
No related merge requests found
Pipeline #11612 passed
......@@ -318,7 +318,7 @@ void Streamer::_schedule() {
//LOG(INFO) << "Sending chunk " << chunk << " : size = " << (d_buf.size()+rgb_buf.size()) / 1024 << "kb";
UNIQUE_LOCK(src->mutex,lk);
SHARED_LOCK(src->mutex,lk);
auto i = src->clients[0].begin();
while (i != src->clients[0].end()) {
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment