diff options
author | Emil Lauridsen <[email protected]> | 2019-12-27 11:43:14 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2019-12-27 11:43:14 +0000 |
commit | c732f215cb31e9f022090b8d0212f6ea9c134c11 (patch) | |
tree | 431bee63fe79f253cdc1ec3a435efd78bc45f0e7 /crates/ra_cargo_watch/src | |
parent | ed84c85aef859e97ab355e78bf77f435689f25b7 (diff) |
Don't finish main cargo watch thread when subprocess finishes.
Diffstat (limited to 'crates/ra_cargo_watch/src')
-rw-r--r-- | crates/ra_cargo_watch/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs index 11b624abf..d683d43d2 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs | |||
@@ -193,8 +193,7 @@ impl CheckWatcherState { | |||
193 | recv(self.watcher.message_recv) -> msg => match msg { | 193 | recv(self.watcher.message_recv) -> msg => match msg { |
194 | Ok(msg) => self.handle_message(msg, task_send), | 194 | Ok(msg) => self.handle_message(msg, task_send), |
195 | Err(RecvError) => { | 195 | Err(RecvError) => { |
196 | // Task channel has closed, so shut down | 196 | // Watcher finished, do nothing. |
197 | break; | ||
198 | }, | 197 | }, |
199 | } | 198 | } |
200 | }; | 199 | }; |