Commit b33fef69 authored by Ryan LeFevre's avatar Ryan LeFevre

Bind to finish event

parent 3838f978
......@@ -15,5 +15,5 @@ module.exports =
@toPng().then (image) ->
image
.pack()
.on 'end', -> setTimeout(resolve, 1)
.pipe(fs.createWriteStream(output))
.on 'finish', resolve
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment