From 3fc6fe922e2f98a667c7e728493e83f0ea965370 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 28 Feb 2018 20:32:06 +0000 Subject: [PATCH] Reconnect on NothinInTheSocketExceptions --- src/danog/MadelineProto/MTProtoTools/CallHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index 748ee0ed..f7fe6d7d 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -172,7 +172,7 @@ trait CallHandler continue; } catch (\danog\MadelineProto\NothingInTheSocketException $e) { \danog\MadelineProto\Logger::log(['An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...'], \danog\MadelineProto\Logger::WARNING); - continue; + continue 2; } } if ($canunset) {