aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xyoutube-dl1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl
index d0584a312..6b5f5693d 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -640,6 +640,7 @@ class FileDownloader(object):
# Apply rate limit
self.slow_down(start, byte_counter)
+ stream.close()
self.report_finish()
if data_len is not None and str(byte_counter) != data_len:
raise ContentTooShortError(byte_counter, long(data_len))