mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
fix potential panic on shutdown when mux_enable_ssh_agent=true
refs: https://github.com/wez/wezterm/issues/5518
This commit is contained in:
parent
4e8eb7c2ca
commit
4884f31762
@ -127,11 +127,13 @@ impl AgentProxy {
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
while receiver.try_recv().is_ok() {}
|
||||
|
||||
if let Some(agent) = &Mux::get().agent {
|
||||
if let Some(mux) = Mux::try_get() {
|
||||
if let Some(agent) = &mux.agent {
|
||||
agent.update_now();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn update_now(&self) {
|
||||
// Get list of clients from mux
|
||||
|
Loading…
Reference in New Issue
Block a user