1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 20:51:19 +01:00
This commit is contained in:
Daniil Gentili 2021-12-05 17:42:09 +01:00
parent abadfb745e
commit 6cdca88f13
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 1 additions and 2 deletions

View File

@ -323,7 +323,7 @@ class API extends InternalDoc
// Success, IPC client
$this->API = new Client($unserialized, $this->session, Logger::$default, $this->async);
$this->APIFactory();
if ($settings) {
if (!$settings instanceof SettingsEmpty) {
$this->API->updateSettings($settings);
}
return true;

View File

@ -5,7 +5,6 @@ namespace danog\MadelineProto\MTProtoTools;
use Amp\Loop;
use danog\MadelineProto\Logger;
use danog\MadelineProto\Magic;
use ReflectionClass;
final class GarbageCollector
{