Don't finish main cargo watch thread when subprocess finishes.
This commit is contained in:
parent
ed84c85aef
commit
c732f215cb
@ -193,8 +193,7 @@ impl CheckWatcherState {
|
||||
recv(self.watcher.message_recv) -> msg => match msg {
|
||||
Ok(msg) => self.handle_message(msg, task_send),
|
||||
Err(RecvError) => {
|
||||
// Task channel has closed, so shut down
|
||||
break;
|
||||
// Watcher finished, do nothing.
|
||||
},
|
||||
}
|
||||
};
|
||||
|
@ -184,7 +184,10 @@ pub fn main_loop(
|
||||
Err(RecvError) => Err("vfs died")?,
|
||||
},
|
||||
recv(libdata_receiver) -> data => Event::Lib(data.unwrap()),
|
||||
recv(world_state.check_watcher.task_recv) -> task => Event::CheckWatcher(task.unwrap())
|
||||
recv(world_state.check_watcher.task_recv) -> task => match task {
|
||||
Ok(task) => Event::CheckWatcher(task),
|
||||
Err(RecvError) => Err("check watcher died")?,
|
||||
}
|
||||
};
|
||||
if let Event::Msg(Message::Request(req)) = &event {
|
||||
if connection.handle_shutdown(&req)? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user