Skip to content

Commit 51a46de

Browse files
committed
handle empty sync
1 parent d474db2 commit 51a46de

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sectigo-scm-caplugin/Client/SectigoClient.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public async Task CertificateListProducer(BlockingCollection<Certificate> certs,
6161
Logger.LogInformation($"Request Certificates at Position {certIndex} with Page Size {pageSize}");
6262
certificatePageToProcess = await PageCertificates(certIndex, pageSize, filter);
6363
Logger.LogDebug($"Found {certificatePageToProcess.Count} certificate to process");
64-
64+
if (certificatePageToProcess.Count == 0)
65+
{
66+
return;
67+
}
6568
//Processing Loop will add and retry adding to queue until all certificates have been processed for a page
6669
batchCount = 0;
6770
blockedCount = 0;

0 commit comments

Comments
 (0)