1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:14:43 +01:00

Bump layer

This commit is contained in:
Daniil Gentili 2024-05-01 13:57:50 +02:00
parent 3db5fb1b42
commit 1c7bc488e2
3 changed files with 8 additions and 13 deletions

View File

@ -1,6 +1,6 @@
{
"name": "danog/madelineproto",
"description": "PHP implementation of telegram's MTProto protocol.",
"description": "Async PHP client API for the telegram MTProto protocol.",
"type": "project",
"license": "AGPL-3.0-only",
"homepage": "https://docs.madelineproto.xyz",

View File

@ -51,7 +51,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.0.1';
public const RELEASE = '8.1.0';
/**
* We're not logged in.
*

View File

@ -593,12 +593,6 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
Magic::start(light: false);
// Parse and store settings
$this->updateSettingsInternal($settings, false);
// Start IPC server
if (!$this->ipcServer) {
$this->ipcServer = new Server($this);
$this->ipcServer->setIpcPath($this->wrapper->getSession());
}
$this->ipcServer->start();
// Actually instantiate needed classes like a boss
$this->cleanupProperties();
// Load rsa keys
@ -900,6 +894,12 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
*/
private function cleanupProperties(): void
{
// Start IPC server
if (!$this->ipcServer) {
$this->ipcServer = new Server($this);
$this->ipcServer->setIpcPath($this->wrapper->getSession());
}
$this->ipcServer->start();
if (!isset($this->updateQueue)) {
$q = new SplQueue;
$q->setIteratorMode(SplQueue::IT_MODE_DELETE);
@ -1030,11 +1030,6 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
try {
// Setup logger
$this->setupLogger();
if (!$this->ipcServer) {
$this->ipcServer = new Server($this);
$this->ipcServer->setIpcPath($this->wrapper->getSession());
}
$this->ipcServer->start();
// Cleanup old properties, init new stuffs
$this->cleanupProperties();