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:
Aleksey Kladov 2019-04-17 11:47:29 +03:00
parent d3afb1b378
commit f75feb6724
2 changed files with 6 additions and 13 deletions

View file

@ -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;