diff options
Diffstat (limited to 'worker/notmuch/eventhandlers.go')
-rw-r--r-- | worker/notmuch/eventhandlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index a6ab7668..d4d75628 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -21,6 +21,11 @@ func (w *worker) handleNotmuchEvent(et eventType) error { } func (w *worker) handleUpdateDirCounts() error { + err := w.db.Connect() + if err != nil { + return err + } + defer w.db.Close() if w.store != nil { folders, err := w.store.FolderMap() if err != nil { |