diff options
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r-- | worker/notmuch/worker.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 51de6ccb..13733d60 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -312,6 +312,9 @@ func (w *worker) getDirectoryInfo(name string, query string) *models.DirectoryIn } func (w *worker) handleOpenDirectory(msg *types.OpenDirectory) error { + if msg.Context.Err() != nil { + return context.Canceled + } w.w.Tracef("opening %s", msg.Directory) var isDynamicFolder bool |