mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 07:03:31 +00:00
Stabilize ACP lazy install test
This commit is contained in:
parent
f88f2793c0
commit
15dc2dc375
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();
|
let body = document.to_string();
|
||||||
|
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
if let Ok((mut stream, _)) = listener.accept() {
|
loop {
|
||||||
respond_json(&mut stream, &body);
|
match listener.accept() {
|
||||||
|
Ok((mut stream, _)) => respond_json(&mut stream, &body),
|
||||||
|
Err(_) => break,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue