mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 11:34:41 +01:00
Whoops
This commit is contained in:
parent
b1d501d009
commit
3160917b5e
@ -107,9 +107,9 @@ trait AuthKeyHandler
|
||||
$time = microtime(true);
|
||||
while (!feof($f)) {
|
||||
usleep(
|
||||
($writePeriod -
|
||||
($time - microtime(true)) // Time it took me to write frames
|
||||
) * 1000000
|
||||
(int)(($writePeriod -
|
||||
(microtime(true) - $time) // Time it took me to write frames
|
||||
) * 1000000)
|
||||
);
|
||||
$time = microtime(true);
|
||||
$this->calls[$params['id']]['controller']->writeFrames(stream_get_contents($f, 960 * 2));
|
||||
|
Loading…
Reference in New Issue
Block a user