mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(TextProcessing/Manager): add canuseProvider check in getPreferredProviders
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
d11b9cbd79
commit
26a659dc2c
1 changed files with 1 additions and 3 deletions
|
|
@ -119,9 +119,6 @@ class Manager implements IManager {
|
|||
$providers = $this->getPreferredProviders($task);
|
||||
|
||||
foreach ($providers as $provider) {
|
||||
if (!$task->canUseProvider($provider)) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
$task->setStatus(OCPTask::STATUS_RUNNING);
|
||||
if ($provider instanceof IProvider2) {
|
||||
|
|
@ -288,6 +285,7 @@ class Manager implements IManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
$providers = array_filter($providers, fn (IProvider $provider) => $task->canUseProvider($provider));
|
||||
return $providers;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue