only stop wait on child on ok changes values

This commit is contained in:
Ruben Fiszel
2022-10-06 23:37:10 +02:00
parent 8accb59a8c
commit feb5aadcc3
+1 -1
View File
@@ -1574,7 +1574,7 @@ async fn handle_child(
let kill_reason = tokio::select! {
biased;
result = child.wait() => return result.map(Ok),
_ = too_many_logs.changed() => KillReason::TooManyLogs,
Ok(()) = too_many_logs.changed() => KillReason::TooManyLogs,
_ = cancel_check => KillReason::Cancelled,
_ = sleep(timeout) => KillReason::Timeout,
};