Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 1266709

Browse files
authored
Merge pull request #985 from lmancel/patch-1
ffprobe: added EOF to the list of ignored errors
2 parents dc826c4 + 27f79a5 commit 1266709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ffprobe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = function(proto) {
158158
// Skip errors on stdin. These get thrown when ffprobe is complete and
159159
// there seems to be no way hook in and close stdin before it throws.
160160
ffprobe.stdin.on('error', function(err) {
161-
if (['ECONNRESET', 'EPIPE'].indexOf(err.code) >= 0) { return; }
161+
if (['ECONNRESET', 'EPIPE', 'EOF'].indexOf(err.code) >= 0) { return; }
162162
handleCallback(err);
163163
});
164164

0 commit comments

Comments
 (0)