Skip to content

Commit

Permalink
fix: Map printer will close when electron window closes it, no need to
Browse files Browse the repository at this point in the history
wait for graceful close
  • Loading branch information
okdistribute committed Sep 22, 2020
1 parent 89e7cd0 commit f7ff55e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ class Main extends events.EventEmitter {
logger.info('process?', !!this.pid.process)
if (!this.pid.process) return _close()

this.mapPrinter.send('close', null, () => {
this.mapeo.send('close', null, () => {
logger.debug('IPC closed')
_close()
})
this.mapeo.send('close', null, () => {
logger.debug('IPC closed')
_close()
})
}
}
Expand Down

0 comments on commit f7ff55e

Please sign in to comment.