diff --git a/lib/Service/RemoteService.php b/lib/Service/RemoteService.php index 3165cd6091..3e70ebe320 100644 --- a/lib/Service/RemoteService.php +++ b/lib/Service/RemoteService.php @@ -67,11 +67,7 @@ public function convertFileTo(File $file, string $format, int $timeout = RemoteO throw new Exception('Failed to open stream'); } - try { - return $this->convertTo($file->getName(), $stream, $format, [], $timeout); - } finally { - fclose($stream); - } + return $this->convertTo($file->getName(), $stream, $format, [], $timeout); } /**