mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Protects from killing a closed process
This commit is contained in:
parent
b72094d740
commit
89a676a49c
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ WebBrowser.prototype = {
|
|||
this.callback = callback;
|
||||
}
|
||||
|
||||
this.process.kill('SIGTERM');
|
||||
if (this.process) {
|
||||
this.process.kill('SIGTERM');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue