mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
connection::bump(): Fix double locking
This commit is contained in:
parent
a36deeb1db
commit
85e143fd11
1 changed files with 1 additions and 2 deletions
|
@ -44,9 +44,8 @@ connection::senses(int tick_id, class agent &a)
|
|||
void
|
||||
connection::bump(void)
|
||||
{
|
||||
pthread_mutex_lock(&buf_lock);
|
||||
/* Must be called with buf_lock held! */
|
||||
out_buf.append("BUMP\r\n");
|
||||
pthread_mutex_unlock(&buf_lock);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue