mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: fs.close
This commit is contained in:
parent
198a69011c
commit
6496a8f0bc
@ -384,7 +384,7 @@ const utils = {
|
||||
rejects(err)
|
||||
} else {
|
||||
fs.write(fd, buffer, 0, buffer.length, 0, err => {
|
||||
fs.close()
|
||||
fs.close(fd)
|
||||
if (err) {
|
||||
rejects(err)
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user