diff --git a/index.js b/index.js index b65c4d3..ab9a036 100644 --- a/index.js +++ b/index.js @@ -131,7 +131,10 @@ function grabNextSite() { casper.start(site.url); casper.run(function() { - casper.done(); + setTimeout(function() { + casper.done(); + phantom.exit(); + }); }); }