1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 04:31:12 +01:00

Fix small bug

This commit is contained in:
Daniil Gentili 2023-01-20 15:44:12 +01:00
parent 61e4d677ca
commit 68cf938ea0

View File

@ -1002,12 +1002,10 @@ final class MTProto implements TLCallback, LoggerGetter
*/ */
private function cleanupProperties(): void private function cleanupProperties(): void
{ {
if (!isset($this->datacenter)) { $this->channels_state ??= new CombinedUpdatesState;
$this->datacenter ??= new DataCenter($this, $this->dcList, $this->settings->getConnection()); $this->datacenter ??= new DataCenter($this, $this->dcList, $this->settings->getConnection());
} $this->snitch ??= new Snitch;
if (!isset($this->snitch)) {
$this->snitch = new Snitch;
}
$db = []; $db = [];
if (!isset($this->referenceDatabase)) { if (!isset($this->referenceDatabase)) {
$this->referenceDatabase = new ReferenceDatabase($this); $this->referenceDatabase = new ReferenceDatabase($this);