mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
cleanup cancellation
Now that we explicitelly exit the reading loop on exit notification, we can assume that the sender is always alive
This commit is contained in:
parent
d3afb1b378
commit
f75feb6724
2 changed files with 6 additions and 13 deletions
|
@ -27,9 +27,7 @@ pub fn stdio_transport() -> (Receiver<RawMessage>, Sender<RawMessage>, Threads)
|
|||
_ => false,
|
||||
};
|
||||
|
||||
if let Err(_) = reader_sender.send(msg) {
|
||||
break;
|
||||
}
|
||||
reader_sender.send(msg).unwrap();
|
||||
|
||||
if is_exit {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue