revert(youtube): drop the unverified chunked-upload guard
YouTube uploads through the Google API client's resumable handler, not our HTTP client, so the leak couldn't be reproduced for it and the nextChunk loop can't be exercised by a test without making the Google client injectable. Keeping this PR to changes that are both reproduced and covered by a test (X and LinkedIn); YouTube is tracked separately.
This commit is contained in:
parent
317788eb37
commit
a285c0c1fe
1 changed files with 0 additions and 3 deletions
|
|
@ -167,9 +167,6 @@ private function publishShort(PostPlatform $postPlatform, $media, SocialAccount
|
|||
while (! $uploadStatus && ! feof($handle)) {
|
||||
$chunk = fread($handle, self::CHUNK_SIZE);
|
||||
$uploadStatus = $mediaUpload->nextChunk($chunk);
|
||||
|
||||
unset($chunk);
|
||||
$this->freeChunkMemory();
|
||||
}
|
||||
|
||||
fclose($handle);
|
||||
|
|
|
|||
Loading…
Reference in a new issue