[Pkg-javascript-commits] [pdf.js] 41/141: Protects from killing a closed process

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 89a676a49c49a565657e4d8fc6405f9e9e15f435
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Mon Apr 7 09:31:04 2014 -0500

    Protects from killing a closed process
---
 test/webbrowser.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/webbrowser.js b/test/webbrowser.js
index 69c6333..24d72a7 100644
--- a/test/webbrowser.js
+++ b/test/webbrowser.js
@@ -99,7 +99,9 @@ WebBrowser.prototype = {
       this.callback = callback;
     }
 
-    this.process.kill('SIGTERM');
+    if (this.process) {
+      this.process.kill('SIGTERM');
+    }
   }
 };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list