Merge 4361cc6c90 into sapling-pr-archive-bolinfest

This commit is contained in:
Michael Bolin
2025-08-17 14:19:29 -07:00
committed by GitHub

View File

@@ -120,16 +120,11 @@ pub fn run_login_server(
let _server_handle = {
let server = server.clone();
thread::spawn(move || -> io::Result<()> {
loop {
match server.recv() {
Ok(request) => tx.blocking_send(request).map_err(|e| {
eprintln!("Failed to send request to channel: {e}");
io::Error::other("Failed to send request to channel")
})?,
Err(_e) => {
break;
}
};
while let Ok(request) = server.recv() {
tx.blocking_send(request).map_err(|e| {
eprintln!("Failed to send request to channel: {e}");
io::Error::other("Failed to send request to channel")
})?;
}
Ok(())
})