mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 09:34:38 +01:00
Update
This commit is contained in:
parent
1584bf6fba
commit
8ee20da7ab
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user