mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:04:40 +01:00
Bump layer
This commit is contained in:
parent
3db5fb1b42
commit
1c7bc488e2
@ -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",
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user