Skip to content

Commit

Permalink
Closing file handle after opening file to check file type.
Browse files Browse the repository at this point in the history
  • Loading branch information
chung-leong committed Dec 11, 2018
1 parent 74bcac5 commit 6c462bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/media-server.js
Expand Up @@ -632,6 +632,8 @@ function getFileType(path) {
};
}
return info;
}).finally(() => {
return FS.closeAsync(fd);
});
});
}
Expand Down

0 comments on commit 6c462bc

Please sign in to comment.