mirror of https://github.com/lapce/lapce.git
shutdown lapce-proxy
This commit is contained in:
parent
48324342d1
commit
4cc59d1b42
|
@ -243,7 +243,6 @@ pub fn new(
|
|||
disabled_volts,
|
||||
plugin_configurations,
|
||||
);
|
||||
println!("proxy stopped");
|
||||
let _ = event_sink.submit_command(
|
||||
LAPCE_UI_COMMAND,
|
||||
LapceUICommand::ProxyUpdateStatus(ProxyStatus::Disconnected),
|
||||
|
@ -401,8 +400,6 @@ fn start_remote(&self, remote: impl Remote) -> Result<()> {
|
|||
.ok_or_else(|| anyhow!("can't find stdout"))?,
|
||||
);
|
||||
|
||||
println!("started remote proxy");
|
||||
|
||||
let (writer_tx, writer_rx) = crossbeam_channel::unbounded();
|
||||
let (reader_tx, reader_rx) = crossbeam_channel::unbounded();
|
||||
stdio_transport(stdin, writer_rx, stdout, reader_tx);
|
||||
|
@ -419,6 +416,8 @@ fn start_remote(&self, remote: impl Remote) -> Result<()> {
|
|||
let _ = local_writer_tx.send(RpcMessage::Notification(rpc));
|
||||
}
|
||||
ProxyRpc::Shutdown => {
|
||||
let _ = child.kill();
|
||||
let _ = child.wait();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,6 +105,7 @@ fn handle_notification(&mut self, rpc: ProxyNotification) {
|
|||
#[allow(deprecated)]
|
||||
let _ = sender.send(Msg::Shutdown);
|
||||
}
|
||||
self.proxy_rpc.shutdown();
|
||||
}
|
||||
Update { path, delta, rev } => {
|
||||
let buffer = self.buffers.get_mut(&path).unwrap();
|
||||
|
|
Loading…
Reference in New Issue