Merge pull request #597 from jamiebrynes7/bugfix/fix-crash-on-exit

Fix crash on exit
This commit is contained in:
Dawid Dziurla
2020-01-16 07:38:25 +01:00
committed by GitHub

View File

@@ -880,7 +880,9 @@ func (gui *Gui) RunWithSubprocesses() error {
}
}
gui.fileWatcher.Watcher.Close()
if !gui.fileWatcher.Disabled {
gui.fileWatcher.Watcher.Close()
}
break
} else if err == gui.Errors.ErrSwitchRepo {