We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07934e2 commit 3b7dec0Copy full SHA for 3b7dec0
src/createSpawn.ts
@@ -117,7 +117,11 @@ export const createSpawn = (
117
118
if (abortSignal) {
119
const kill = () => {
120
- processPromise.kill();
+ // eslint-disable-next-line promise/prefer-await-to-then
121
+ processPromise.kill().finally(() => {
122
+ processPromise.stdout.off('data', onStdout);
123
+ processPromise.stderr.off('data', onStderr);
124
+ });
125
};
126
127
abortSignal.addEventListener('abort', kill, {
0 commit comments