1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-10-14 15:55:16 -03:00
parent 6a7e80375f
commit 47bc9eacbc

View file

@ -560,12 +560,13 @@ class Message implements MessageComponentInterface
$duration = $endTime - $startTime;
// If it takes longer than 0.01 seconds, add to lastMessageToAllDurationMessages
if ($duration > 0.01) {
if ($duration > 0.05) {
_log_message("resourceId={$client['resourceId']} took {$duration} seconds to send the message.");
self::$lastMessageToAllDurationMessages[] = [
'resourceId' => $client['resourceId'],
'duration' => $duration
];
$this->clients[$client['resourceId']]->close();
}
}