mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
run egw destructor explizit for merge-downloads to allow eg. notifications emails in shutdown handler
This commit is contained in:
parent
57263bb54b
commit
03b3b7be1e
@ -2040,6 +2040,10 @@ abstract class Merge
|
|||||||
}
|
}
|
||||||
Api\Header\Content::type($header['name'], $header['mime'], $header['filesize']);
|
Api\Header\Content::type($header['name'], $header['mime'], $header['filesize']);
|
||||||
readfile($result);
|
readfile($result);
|
||||||
|
|
||||||
|
// run egw destructor now explicit, in case a (notification) email is send via Egw::on_shutdown(),
|
||||||
|
// as stream-wrappers used by Horde Smtp fail when PHP is already in destruction
|
||||||
|
$GLOBALS['egw']->__destruct();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user