aboutsummaryrefslogtreecommitdiff
path: root/crates/gen_lsp_server
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-17 09:56:36 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-17 09:56:36 +0100
commit645a7b77b6e2eae08e0db3b2cb29ca1040c8a9d8 (patch)
tree6018c66b0b56449b4a2114612d71776549ee3ab1 /crates/gen_lsp_server
parentd3afb1b3782683c3e800b38b4c24b7581918fb7f (diff)
parentf75feb67244c279e75a4e8c9996a72eed729d321 (diff)
Merge #1158
1158: cleanup cancellation r=matklad a=matklad Now that we explicitelly exit the reading loop on exit notification, we can assume that the sender is always alive Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/gen_lsp_server')
-rw-r--r--crates/gen_lsp_server/src/stdio.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/gen_lsp_server/src/stdio.rs b/crates/gen_lsp_server/src/stdio.rs
index 5edfbc39c..2d6418400 100644
--- a/crates/gen_lsp_server/src/stdio.rs
+++ b/crates/gen_lsp_server/src/stdio.rs
@@ -27,9 +27,7 @@ pub fn stdio_transport() -> (Receiver<RawMessage>, Sender<RawMessage>, Threads)
27 _ => false, 27 _ => false,
28 }; 28 };
29 29
30 if let Err(_) = reader_sender.send(msg) { 30 reader_sender.send(msg).unwrap();
31 break;
32 }
33 31
34 if is_exit { 32 if is_exit {
35 break; 33 break;