JobList#hasReservedJobs: Close cursor

so Joas doesn't die

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/37835/head
Marcel Klehr 3 years ago
parent a0c722ad69
commit 5a7f023bfc
  1. 4
      lib/private/BackgroundJob/JobList.php

@ -397,7 +397,9 @@ class JobList implements IJobList {
try {
$result = $query->executeQuery();
return count($result->fetchAll()) > 0;
$hasReservedJobs = $result->fetch() !== false;
$result->closeCursor();
return $hasReservedJobs;
} catch (Exception $e) {
return false;
}

Loading…
Cancel
Save