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 3a3b4f5 commit 2664f8bCopy full SHA for 2664f8b
src/app/desktop/components/Instances/Instance.js
@@ -210,8 +210,8 @@ const Instance = ({ instanceName }) => {
210
dispatch(openModal('InstanceDuplicateName', { instanceName }));
211
};
212
const killProcess = () => {
213
- console.log(isPlaying.pid);
214
psTree(isPlaying.pid, (err, children) => {
+ process.kill(isPlaying.pid);
215
if (children?.length) {
216
children.forEach(el => {
217
if (el) {
@@ -220,6 +220,11 @@ const Instance = ({ instanceName }) => {
220
} catch {
221
// No-op
222
}
223
+ try {
224
+ process.kill(el.PPID);
225
+ } catch {
226
+ // No-op
227
+ }
228
229
});
230
} else {
0 commit comments