Browse Source

fastcgi_finish_request() (if sapi)

master
Julien Cabillot 3 years ago
parent
commit
728b40b504
1 changed files with 4 additions and 2 deletions
  1. 6
      lib/Download.php

6
lib/Download.php

@ -170,8 +170,10 @@ class Download {
static function launchNextDownload() static function launchNextDownload()
{ {
echo json_encode('Traitement'); echo json_encode('Traitement');
fastcgi_finish_request();
if ('cgi-fcgi' === php_sapi_name()) {
fastcgi_finish_request();
}
$toDownload = self::findNextJob(); $toDownload = self::findNextJob();
$toDownload->get(); $toDownload->get();
} }

Loading…
Cancel
Save