summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJamie Brynes <jamiebrynes7@gmail.com>2020-01-16 00:30:53 +0000
committerJamie Brynes <jamiebrynes7@gmail.com>2020-01-16 00:30:53 +0000
commit810adab9573e0190c27073e85b39246d51a56a27 (patch)
tree54c467dd55211a33eea2202380a28708931dd558 /pkg
parent83a3c9fc8d90ddafe6fb2e752d57af161b081d83 (diff)
handle case where file watcher is disabled
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 08242da53..45229974a 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -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 {