From 6acf9d9d7161f175812596d17178a42f2056cf37 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 5 Dec 2024 11:48:00 +0100 Subject: [PATCH] TBD --- library/X509/Job.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/X509/Job.php b/library/X509/Job.php index 1e0b3f73..8dc130ea 100644 --- a/library/X509/Job.php +++ b/library/X509/Job.php @@ -507,8 +507,6 @@ function (ConnectionInterface $conn) use ($target, $streamCapture) { $capturedStreamOptions = $streamCapture->getCapturedStreamOptions(); $this->processChain($target, $capturedStreamOptions['ssl']['peer_certificate_chain']); - - $this->finishTarget(); }, function (Exception $exception) use ($target, $streamCapture) { Logger::debug("Cannot connect to server: %s", $exception->getMessage()); @@ -539,10 +537,9 @@ function (Exception $exception) use ($target, $streamCapture) { if ($this->finishedTargets % (int) $step == 0) { $this->updateJobStats(); } - - $this->finishTarget(); } )->always(function () use ($target) { + $this->finishTarget(); $this->updateLastScan($target); })->otherwise(function (Throwable $e) { Logger::error($e->getMessage());