Skip to content

A full-featured download manager.

fix: app hang caused by child_process spawn

Dr_rOot549094626735
diff --git a/src/main/core/Engine.js b/src/main/core/Engine.js
index 467df35d..40b81cd1 100644
--- a/src/main/core/Engine.js
+++ b/src/main/core/Engine.js
@@ -38,7 +38,10 @@ export default class Engine {
const binPath = this.getBinPath()
const args = this.getStartArgs()
- this.instance = spawn(binPath, args)
+ this.instance = spawn(binPath, args, {
+ windowsHide: false,
+ stdio: is.dev() ? 'pipe' : 'ignore'
+ })
const pid = this.instance.pid.toString()
this.writePidFile(pidPath, pid)