close curl before process.on 'exit'
This commit is contained in:
parent
90f3135c8c
commit
f6bfa11f6e
2 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ stream = fs.createReadStream(cookieFile)
|
|||
stream.pipe(process.stdout)
|
||||
stream.on 'end', ->
|
||||
p "----"
|
||||
curl.close()
|
||||
p "deleting #{cookieFile}"
|
||||
fs.unlink! cookieFile
|
||||
p "done."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue