mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
connection::thread_loop(): Try different way to append to in_buf
We have seen mysterious crashes.
This commit is contained in:
parent
430a149a64
commit
39b61175c1
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ connection::thread_loop(void)
|
|||
} else {
|
||||
bool want_moar = false;
|
||||
pthread_mutex_lock(&buf_lock);
|
||||
in_buf.append(cbuf, len);
|
||||
in_buf += std::string(cbuf, len);
|
||||
want_moar = buf_incomplete(in_buf);
|
||||
pthread_mutex_unlock(&buf_lock);
|
||||
if (!want_moar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue