1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Protects from killing a closed process

This commit is contained in:
Yury Delendik 2014-04-07 09:31:04 -05:00
parent b72094d740
commit 89a676a49c

View file

@ -99,7 +99,9 @@ WebBrowser.prototype = {
this.callback = callback;
}
this.process.kill('SIGTERM');
if (this.process) {
this.process.kill('SIGTERM');
}
}
};