revert
This commit is contained in:
parent
6c326305eb
commit
3ec8ad8a81
@ -272,7 +272,7 @@ class DataCenter
|
|||||||
}
|
}
|
||||||
foreach ($ctxs as $ctx) {
|
foreach ($ctxs as $ctx) {
|
||||||
try {
|
try {
|
||||||
if ($old && $this->sockets[$dc_number]->hasConnection($id)) {
|
if ($old) {
|
||||||
$this->API->logger->logger("Reconnecting to DC $dc_number ($id) from existing", \danog\MadelineProto\Logger::WARNING);
|
$this->API->logger->logger("Reconnecting to DC $dc_number ($id) from existing", \danog\MadelineProto\Logger::WARNING);
|
||||||
$this->sockets[$dc_number]->setExtra($this->API);
|
$this->sockets[$dc_number]->setExtra($this->API);
|
||||||
yield $this->sockets[$dc_number]->connect($ctx, $id);
|
yield $this->sockets[$dc_number]->connect($ctx, $id);
|
||||||
|
Loading…
Reference in New Issue
Block a user