8000 Don't repeatedly set the logger · symfony/symfony@dea3f27 · GitHub
[go: up one dir, main page]

Skip to content

Commit dea3f27

Browse files
committed
Don't repeatedly set the logger
1 parent d8267d9 commit dea3f27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/HttpClient/CurlHttpClient.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,10 @@ private static function createRedirectResolver(array $options, string $host, int
449449

450450
private function ensureState(): CurlClientState
451451
{
452-
$this->multi ??= new CurlClientState($this->maxHostConnections, $this->maxPendingPushes);
453-
$this->multi->logger = $this->logger;
452+
if (!isset($this->multi)) {
453+
$this->multi = new CurlClientState($this->maxHostConnections, $this->maxPendingPushes);
454+
$this->multi->logger = $this->logger;
455+
}
454456

455457
return $this->multi;
456458
}

0 commit comments

Comments
 (0)
0