1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 05:14:39 +01:00
This commit is contained in:
Daniil Gentili 2023-09-26 10:32:25 +02:00
parent bcf1126200
commit c903311f90
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -27,6 +27,7 @@ use Amp\Dns\DnsResolver;
use Amp\Future;
use Amp\Http\Client\HttpClient;
use Amp\Http\Client\Request;
use Amp\Sync\LocalKeyedMutex;
use Amp\Sync\LocalMutex;
use danog\MadelineProto\Broadcast\Broadcast;
use danog\MadelineProto\Db\DbArray;
@ -787,8 +788,8 @@ final class MTProto implements TLCallback, LoggerGetter
*/
private function cleanupProperties(): void
{
$this->acceptChatMutex ??= new LocalMutex;
$this->confirmChatMutex ??= new LocalMutex;
$this->acceptChatMutex ??= new LocalKeyedMutex;
$this->confirmChatMutex ??= new LocalKeyedMutex;
$this->channels_state ??= new CombinedUpdatesState;
$this->datacenter ??= new DataCenter($this);
$this->snitch ??= new Snitch;