From 346cd5510990ddbe4d5bbe7e7e83bb5bb905a1e0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 31 Jul 2017 14:42:50 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/VoIP/AuthKeyHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index f990a520..d2f77041 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -83,11 +83,13 @@ trait AuthKeyHandler } catch (\danog\MadelineProto\RPCErrorException $e) { if ($e->rpc === 'CALL_ALREADY_ACCEPTED') { \danog\MadelineProto\Logger::log(['Call '.$call['id'].' already accepted']); + return true; } if ($e->rpc === 'CALL_ALREADY_DECLINED') { \danog\MadelineProto\Logger::log(['Call '.$call['id'].' already declined']); $this->calls[$res['phone_call']['id']]->discard(); + return false; } throw $e; @@ -96,6 +98,7 @@ trait AuthKeyHandler $this->handle_pending_updates(); $this->get_updates_difference(); + return true; }