diff --git a/node-phantom.js b/node-phantom.js index 960530d..3e68332 100644 --- a/node-phantom.js +++ b/node-phantom.js @@ -150,6 +150,7 @@ module.exports={ }, exit:function(callback){ request(socket,[0,'exit'],callbackOrDummy(callback)); + phantom.kill('SIGTERM'); } };