1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00
This commit is contained in:
Daniil Gentili 2023-01-26 14:45:15 +01:00
parent b9c6fdb7bb
commit b1920af526

View File

@ -555,11 +555,13 @@ final class MTProto implements TLCallback, LoggerGetter
return;
}
$done = true;
Logger::log('Prompting final serialization (SHUTDOWN)...');
foreach (self::$references as $instance) {
$instance->wrapper->serialize();
if (self::$references) {
Logger::log('Prompting final serialization (SHUTDOWN)...');
foreach (self::$references as $instance) {
$instance->wrapper->serialize();
}
Logger::log('Done final serialization (SHUTDOWN)!');
}
Logger::log('Done final serialization (SHUTDOWN)!');
}
private ?Future $initPromise = null;