mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:58:58 +01:00
Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
a060e84da9
@ -92,7 +92,7 @@ trait CallHandler
|
|||||||
|
|
||||||
case 420:
|
case 420:
|
||||||
$seconds = preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
$seconds = preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
||||||
if (is_numeric($seconds) && isset($this->settings['flood_timeout']['wait_if_lt']) && $seconds < $this->settings['flood_timeout']['wait_if_lt']) {
|
if (is_numeric($seconds) && isset($this->settings['flood_timeout']['wait_if_lt']) && $seconds < $this->settings['flood_timeout']['wait_if_lt']) {
|
||||||
\danog\MadelineProto\Logger::log(['Flood, waiting '.$seconds.' seconds...'], \danog\MadelineProto\Logger::NOTICE);
|
\danog\MadelineProto\Logger::log(['Flood, waiting '.$seconds.' seconds...'], \danog\MadelineProto\Logger::NOTICE);
|
||||||
sleep($seconds);
|
sleep($seconds);
|
||||||
throw new \danog\MadelineProto\Exception('Re-executing query...');
|
throw new \danog\MadelineProto\Exception('Re-executing query...');
|
||||||
|
Loading…
Reference in New Issue
Block a user