From 85e143fd116fdd867387c7984845f4f66717c537 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Nov 2011 05:05:57 +0100 Subject: [PATCH] connection::bump(): Fix double locking --- connection.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connection.cc b/connection.cc index 737a355..ff57fd2 100644 --- a/connection.cc +++ b/connection.cc @@ -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