Skip to content

Commit

Permalink
fix mistake in engine plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
farin committed Nov 20, 2020
1 parent 2cf75d9 commit 87e36f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/plugins/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ export default ({ app }, inject) => {
const s = require('net').Socket()
s.connect(remote.port, remote.host)
spawnedEngine = new SocketEngine(s, loggingEnabled)
return spawnedEngine
} else {
spawnedEngine = new Engine(spawn(this.getJavaExecutable(), this.getJavaArgs()), loggingEnabled)
spawnedEngine.engineProcess.on('exit', () => {
spawnedEngine = null
})
}
spawnedEngine.engineProcess.on('exit', () => {
spawnedEngine = null
})
return spawnedEngine
},

kill () {
Expand Down

0 comments on commit 87e36f0

Please sign in to comment.