From 2e60ab67d1789609f1e7eef11aaebfa9eb440a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= Date: Sun, 29 Sep 2019 20:53:09 -0400 Subject: Remove duplicate mutex lock in `t_phone::end_call()` A write lock on `lines_mtx` has already been acquired at the beginning of `end_call()`. --- src/phone.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/phone.cpp b/src/phone.cpp index 16abc38..8de3834 100644 --- a/src/phone.cpp +++ b/src/phone.cpp @@ -279,8 +279,6 @@ void t_phone::end_call(void) { move_line_to_background(lineno1); move_line_to_background(lineno2); } else { - t_rwmutex_reader x(lines_mtx); - // Hangup the active line, and make the next // line active. int l = active_line; -- cgit v1.2.3