Properly shutdown in case of exception

This commit is contained in:
Daniil Gentili 2019-09-03 18:21:43 +02:00
parent f26665479e
commit 662c947953
3 changed files with 7 additions and 16 deletions

View File

@ -93,5 +93,6 @@ class Exception extends \Exception
public static function ExceptionHandler($exception)
{
Logger::log($exception, Logger::FATAL_ERROR);
Magic::shutdown();
}
}

File diff suppressed because one or more lines are too long

View File

@ -14,6 +14,8 @@ If not, see <http://www.gnu.org/licenses/>.
/**
* Various ways to load MadelineProto.
*/
if (!\file_exists(__DIR__.'/../vendor/autoload.php')) {
echo 'You did not run composer update, using madeline.php'.PHP_EOL;
if ($phar = \getenv('TRAVIS_PHAR')) {