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:
parent
73732a8ad2
commit
ef0059bf08
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user