Skip to content

Commit c444ae0

Browse files
committed
fix(pipeline): try remove dp2key on start
try to remove the dp2 key file in temp that could remain after a crash
1 parent d2c9761 commit c444ae0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/factories/ipcs/pipeline.ts

+3
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ Then close the program using the port and restart this application.`,
392392
`Using existing ${this.props.logsFolder} for pipeline logs`
393393
)
394394
}
395+
if (existsSync(resolve(app.getPath('temp'), 'dp2key.txt'))) {
396+
rmSync(resolve(app.getPath('temp'), 'dp2key.txt'))
397+
}
395398
// avoid using bat to control the runner ?
396399
// Spawn pipeline process
397400
let command = resolve(this.props.jrePath, 'bin', 'java')

0 commit comments

Comments
 (0)