From 494fdcfdd4dc1f7f11170c0af228762450c45cce Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 16 Jan 2017 16:02:54 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/MTProtoTools/CallHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index ec7e110f..44b5278a 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -48,7 +48,9 @@ trait CallHandler $this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'] = []; } } catch (\danog\MadelineProto\Exception $e) { - if ($e->getMessage() == 'I had to recreate the temporary authorization key') continue 2; + if ($e->getMessage() == 'I had to recreate the temporary authorization key') { + continue 2; + } \danog\MadelineProto\Logger::log('An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...'); continue; }