|
|
@@ -132,7 +132,7 @@ class MainSerivce {
|
|
|
this.contrlEvent = fork(join(__dirname, './logiControl.js'));
|
|
|
this.contrlEvent.on('message', msg => {
|
|
|
if (msg.type === 'err') {
|
|
|
- this.contrlEvent.kill('SIGHUP')
|
|
|
+ this.contrlEvent.kill(msg.pid)
|
|
|
this.contrlEvent = null
|
|
|
dialog.showMessageBox(this.mainWin, { message: '请尝试旋转方向或重新插入USB!', type: 'error', title: '连接错误' }).then(async ({ response }) => {
|
|
|
if (!response) {
|