From 23bd71c1b6e0adda749f6d86a78042b285767402 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Fri, 10 May 2019 23:51:25 +0300 Subject: [PATCH] Revert --- composer.lock | 16 ++++++++-------- src/Client.php | 4 +--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/composer.lock b/composer.lock index 8ff85db..51d4e32 100644 --- a/composer.lock +++ b/composer.lock @@ -989,7 +989,7 @@ "source": { "type": "git", "url": "https://github.com/xtrime-ru/MadelineProto.git", - "reference": "56b6869620ac041cfadb64dc070accbc4774b7af" + "reference": "4b861388e754f9858a6661246e90256707be0b58" }, "require": { "amphp/amp": "^2.0", @@ -1068,7 +1068,7 @@ "telegram", "video" ], - "time": "2019-05-01T21:30:22+00:00" + "time": "2019-05-10T20:44:48+00:00" }, { "name": "danog/magicalserializer", @@ -1805,22 +1805,22 @@ "source": { "type": "git", "url": "https://github.com/rollbar/rollbar-php.git", - "reference": "b539b65bf462b52e6ec41cb8c758472120d784b6" + "reference": "8a57ad9574d85bd818eaedfc8049fdcb16795f31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rollbar/rollbar-php/zipball/b539b65bf462b52e6ec41cb8c758472120d784b6", - "reference": "b539b65bf462b52e6ec41cb8c758472120d784b6", + "url": "https://api.github.com/repos/rollbar/rollbar-php/zipball/8a57ad9574d85bd818eaedfc8049fdcb16795f31", + "reference": "8a57ad9574d85bd818eaedfc8049fdcb16795f31", "shasum": "" }, "require": { "ext-curl": "*", - "psr/log": "^1.0.1" + "monolog/monolog": "^1", + "psr/log": "^1" }, "require-dev": { "codeclimate/php-test-reporter": "dev-master", "mockery/mockery": "0.9.*", - "monolog/monolog": "^1.24", "packfire/php5.3-compat": "*", "phpmd/phpmd": "@stable", "phpunit/phpunit": "4.8.*", @@ -1856,7 +1856,7 @@ "logging", "monitoring" ], - "time": "2019-03-24T00:59:57+00:00" + "time": "2019-05-06T11:31:11+00:00" }, { "name": "symfony/polyfill-ctype", diff --git a/src/Client.php b/src/Client.php index 28c21e5..dd1ef59 100644 --- a/src/Client.php +++ b/src/Client.php @@ -32,9 +32,7 @@ class Client echo PHP_EOL . 'Starting telegram client ...' . PHP_EOL; $time = microtime(true); $this->MadelineProto = new MadelineProto\API($this->sessionFile, $this->config); - if (!file_exists($this->sessionFile)) { - $this->MadelineProto->start(); - } + $this->MadelineProto->start(); $time = round(microtime(true) - $time, 3); echo PHP_EOL . "Client started: $time sec" . PHP_EOL; }