diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index 672cecae..b9634cb5 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -106,7 +106,7 @@ trait AuthKeyHandler $time = microtime(true); while (!feof($f)) { usleep( - (int)(($writePeriod - + (int) (($writePeriod - (microtime(true) - $time) // Time it took me to write frames ) * 1000000) );