mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +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,8 +127,10 @@ impl AgentProxy {
|
|||||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||||
while receiver.try_recv().is_ok() {}
|
while receiver.try_recv().is_ok() {}
|
||||||
|
|
||||||
if let Some(agent) = &Mux::get().agent {
|
if let Some(mux) = Mux::try_get() {
|
||||||
agent.update_now();
|
if let Some(agent) = &mux.agent {
|
||||||
|
agent.update_now();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user