Commit c155df5d authored by Max Kellermann's avatar Max Kellermann

playlist/SoundCloud: use ScopeLock

parent 33b70567
......@@ -242,7 +242,7 @@ soundcloud_parse_json(const char *url, yajl_handle hand,
return -1;
}
mutex.lock();
const ScopeLock protect(mutex);
yajl_status stat;
int done = 0;
......@@ -259,7 +259,6 @@ soundcloud_parse_json(const char *url, yajl_handle hand,
if (input_stream->IsEOF()) {
done = true;
} else {
mutex.unlock();
return -1;
}
}
......@@ -277,8 +276,6 @@ soundcloud_parse_json(const char *url, yajl_handle hand,
}
}
mutex.unlock();
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment