diff --git a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php index c8b43cdab..02c855ad8 100644 --- a/src/danog/MadelineProto/VoIP/AuthKeyHandler.php +++ b/src/danog/MadelineProto/VoIP/AuthKeyHandler.php @@ -107,7 +107,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) );