Skip to content

Commit 8cb8c70

Browse files
fneumannchfsx
authored andcommitted
Don't check the return value of the SOAP call
This will be false in case of time-consuming background tasks. We have to keep the "fire and forget".
1 parent a63fd83 commit 8cb8c70

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/BackgroundTasks/Implementation/TaskManager/AsyncTaskManager.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@ public function run(Bucket $bucket): void
6868
);
6969

7070
try {
71-
$result = $soap_client->call(self::CMD_START_WORKER, array(
71+
$soap_client->call(self::CMD_START_WORKER, array(
7272
$session_id . '::' . $client_id,
7373
));
74-
if ($result === false) {
75-
throw new ilException("SOAP call returned false");
76-
}
7774
} catch (\Throwable $t) {
7875
$DIC->logger()->bgtk()->warning($t->getMessage());
7976
$DIC->logger()->bgtk()->warning("Calling webserver failed, fallback to sync version");

0 commit comments

Comments
 (0)