mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Abiword: Don't call the callback if null
This commit is contained in:
parent
83f39289aa
commit
259ee4a987
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ if (os.type().indexOf('Windows') > -1) {
|
||||||
abiword.stderr.on('data', (data) => { stdoutBuffer += data.toString(); });
|
abiword.stderr.on('data', (data) => { stdoutBuffer += data.toString(); });
|
||||||
abiword.on('exit', (code) => {
|
abiword.on('exit', (code) => {
|
||||||
spawnAbiword();
|
spawnAbiword();
|
||||||
stdoutCallback(new Error(`Abiword died with exit code ${code}`));
|
if (stdoutCallback != null) stdoutCallback(new Error(`Abiword died with exit code ${code}`));
|
||||||
});
|
});
|
||||||
abiword.stdout.on('data', (data) => {
|
abiword.stdout.on('data', (data) => {
|
||||||
stdoutBuffer += data.toString();
|
stdoutBuffer += data.toString();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue