diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2019-09-29 20:53:09 -0400 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2019-10-02 21:27:19 -0400 |
commit | 2e60ab67d1789609f1e7eef11aaebfa9eb440a89 (patch) | |
tree | 610c852629940d3acd71521fe3b57334a4fe5255 /src | |
parent | 05082ae12051821b1d969e6672d9e4e5afe1bc07 (diff) | |
download | twinkle-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.cpp | 2 |
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; |