Skip to content

Commit d7d88b1

Browse files
fix(node-bindings): kill anvil child on timeout (#3635)
1 parent a2e7fcf commit d7d88b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/node-bindings/src/nodes/anvil.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ impl Anvil {
473473
let mut wallet = None;
474474
loop {
475475
if start + timeout <= Instant::now() {
476+
let _ = child.kill();
476477
return Err(NodeError::Timeout);
477478
}
478479

0 commit comments

Comments
 (0)