1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00

Do not serialize if API is null

This commit is contained in:
Daniil Gentili 2018-03-04 12:16:35 +00:00
parent 73732a8ad2
commit ef0059bf08

View File

@ -54,6 +54,9 @@ class Serialization
$instance->API->setdem = false;
$instance->API->__construct($instance->API->settings);
}
if ($instance->API === null) {
return false;
}
$instance->serialized = time();
$realpaths = self::realpaths($filename);
if (!file_exists($realpaths['lockfile'])) {