Merge branch 'master' of github.com:danog/MadelineProto

This commit is contained in:
Daniil Gentili 2020-02-09 19:29:34 +01:00
commit e4d56f32c2
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -327,6 +327,7 @@ class Connection extends Session
$this->datacenter = $ctx->getDc(); $this->datacenter = $ctx->getDc();
$this->datacenterId = $this->datacenter . '.' . $this->id; $this->datacenterId = $this->datacenter . '.' . $this->id;
$this->API->logger->logger("Connecting to DC {$this->datacenterId}", \danog\MadelineProto\Logger::WARNING); $this->API->logger->logger("Connecting to DC {$this->datacenterId}", \danog\MadelineProto\Logger::WARNING);
$this->createSession();
$ctx->setReadCallback([$this, 'haveRead']); $ctx->setReadCallback([$this, 'haveRead']);
$this->stream = (yield from $ctx->getStream()); $this->stream = (yield from $ctx->getStream());
$this->API->logger->logger("Connected to DC {$this->datacenterId}!", \danog\MadelineProto\Logger::WARNING); $this->API->logger->logger("Connected to DC {$this->datacenterId}!", \danog\MadelineProto\Logger::WARNING);