mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 10:05:18 +00:00
Stabilize ACP lazy install test
This commit is contained in:
parent
845f71c966
commit
4483f7c40d
1 changed files with 5 additions and 2 deletions
|
|
@ -93,8 +93,11 @@ fn serve_registry_once(document: Value) -> String {
|
|||
let body = document.to_string();
|
||||
|
||||
std::thread::spawn(move || {
|
||||
if let Ok((mut stream, _)) = listener.accept() {
|
||||
respond_json(&mut stream, &body);
|
||||
loop {
|
||||
match listener.accept() {
|
||||
Ok((mut stream, _)) => respond_json(&mut stream, &body),
|
||||
Err(_) => break,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue