Skip to content

Commit 495c66b

Browse files
committed
[HttpClient] Don't reset unused clients in data collector
1 parent 8d33bc4 commit 495c66b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public function lateCollect(): void
6464
$this->data['error_count'] += $errorCount;
6565
$this->data['clients'][$name]['error_count'] += $errorCount;
6666

67-
$client->reset();
67+
if ($traces) {
68+
$client->reset();
69+
}
6870
}
6971
}
7072

0 commit comments

Comments
 (0)