mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
Merge 4361cc6c90 into sapling-pr-archive-bolinfest
This commit is contained in:
@@ -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(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user