1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 07:34:41 +01:00
This commit is contained in:
Daniil Gentili 2021-04-19 22:37:53 +02:00
parent 1584bf6fba
commit 8ee20da7ab
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 8 additions and 2 deletions

View File

@ -346,7 +346,7 @@ class Magic
} catch (\Throwable $e) {
}
if ($latest ?? null) {
$latest = self::$revision === \trim($latest) ? '' : ' (AN UPDATE IS REQUIRED)';
$latest = \trim(self::$revision) === \trim($latest) ? '' : ' (AN UPDATE IS REQUIRED)';
}
self::$revision = 'Revision: '.self::$revision.$latest;
}

View File

@ -2,6 +2,7 @@
namespace danog\MadelineProto\Settings;
use danog\MadelineProto\Magic;
use danog\MadelineProto\SettingsAbstract;
/**
@ -16,6 +17,11 @@ class Ipc extends SettingsAbstract
*/
protected bool $slow = false;
public function __construct()
{
Magic::classExists(true);
}
public function mergeArray(array $settings): void
{
$this->setSlow($settings['ipc']['slow'] ?? $this->getSlow());
@ -28,7 +34,7 @@ class Ipc extends SettingsAbstract
*/
public function getSlow(): bool
{
return $this->slow;
return Magic::$isIpcWorker;
}
/**