This commit is contained in:
Daniil Gentili 2019-12-29 02:58:15 +01:00
parent 6c326305eb
commit 3ec8ad8a81

View File

@ -272,7 +272,7 @@ class DataCenter
}
foreach ($ctxs as $ctx) {
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->sockets[$dc_number]->setExtra($this->API);
yield $this->sockets[$dc_number]->connect($ctx, $id);