summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrédéric Brière <fbriere@fbriere.net>2019-09-29 20:53:09 -0400
committerFrédéric Brière <fbriere@fbriere.net>2019-10-02 21:27:19 -0400
commit2e60ab67d1789609f1e7eef11aaebfa9eb440a89 (patch)
tree610c852629940d3acd71521fe3b57334a4fe5255 /src
parent05082ae12051821b1d969e6672d9e4e5afe1bc07 (diff)
downloadtwinkle-2e60ab67d1789609f1e7eef11aaebfa9eb440a89.tar
twinkle-2e60ab67d1789609f1e7eef11aaebfa9eb440a89.tar.gz
twinkle-2e60ab67d1789609f1e7eef11aaebfa9eb440a89.tar.lz
twinkle-2e60ab67d1789609f1e7eef11aaebfa9eb440a89.tar.xz
twinkle-2e60ab67d1789609f1e7eef11aaebfa9eb440a89.zip
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()`.
Diffstat (limited to 'src')
-rw-r--r--src/phone.cpp2
1 files changed, 0 insertions, 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;