From 3ec8ad8a811ba7c219fb12b519ca31f362f0e699 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 29 Dec 2019 02:58:15 +0100 Subject: [PATCH] revert --- src/danog/MadelineProto/DataCenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/DataCenter.php b/src/danog/MadelineProto/DataCenter.php index 75bc0ddc..f542822b 100644 --- a/src/danog/MadelineProto/DataCenter.php +++ b/src/danog/MadelineProto/DataCenter.php @@ -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);