fix: too many open files
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
08b3a943a6
commit
ee49ad05b8
1 changed files with 1 additions and 0 deletions
|
|
@ -154,6 +154,7 @@ const ReadBytes = async (filePath, offset, size) => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
fs.closeSync(fd); //close file when finished
|
||||
|
||||
return BufferToArrayBuffer(sharedBuffer);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue