diff options
author | Aleksey Kladov <[email protected]> | 2019-04-17 09:47:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-17 09:47:38 +0100 |
commit | f75feb67244c279e75a4e8c9996a72eed729d321 (patch) | |
tree | 6018c66b0b56449b4a2114612d71776549ee3ab1 /crates/gen_lsp_server/src | |
parent | d3afb1b3782683c3e800b38b4c24b7581918fb7f (diff) |
cleanup cancellation
Now that we explicitelly exit the reading loop on exit notification,
we can assume that the sender is always alive
Diffstat (limited to 'crates/gen_lsp_server/src')
-rw-r--r-- | crates/gen_lsp_server/src/stdio.rs | 4 |
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; |