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

Allow multi threads to read messages

parent d4131d9f
No related branches found
No related tags found
1 merge request!40Implements #89 PNG chunking
Pipeline #11598 passed
......@@ -467,10 +467,10 @@ bool Peer::_data() {
// CHECK Safe to unlock here?
is_waiting_ = true;
//lk.unlock();
lk.unlock();
disp_->dispatch(*this, obj);
// Relock before next loop of while
//lk.lock();
lk.lock();
is_waiting_ = false;
if (scheme_ == ftl::URI::SCHEME_WS && recv_buf_.nonparsed_size() > 0) {
......
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