From 11d1127dce5c8f6bb3aed514aab93e3b370a2ad5 Mon Sep 17 00:00:00 2001 From: Ryan Cruz Date: Thu, 20 Dec 2012 11:25:28 -0800 Subject: [PATCH] Added call to phantom.kill() when exiting. --- node-phantom.js | 1 + 1 file changed, 1 insertion(+) 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'); } };