fix(window-launcher): Check if instance of hot window is present

This commit is contained in:
Juan Tejada 2016-05-19 14:57:10 -07:00
parent 9b1d223774
commit d2d9b69863

View file

@ -90,7 +90,9 @@ export default class WindowLauncher {
// events. This is necessary for the app to quit promptly on Linux.
// https://phab.nylas.com/T1282
cleanupBeforeAppQuit() {
this.hotWindow.browserWindow.destroy()
if (this.hotWindow != null) {
this.hotWindow.browserWindow.destroy()
}
this.hotWindow = null
}