lib/model: Subscribe to correct event for fs watching (ref #8249) (#8287)

This commit is contained in:
Simon Frei 2022-04-17 10:41:25 +02:00 committed by GitHub
parent 61dffabf97
commit 3907cb0693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -989,7 +989,7 @@ func (f *folder) monitorWatch(ctx context.Context) {
var summarySub events.Subscription var summarySub events.Subscription
var summaryChan <-chan events.Event var summaryChan <-chan events.Event
if fs.WatchKqueue && !f.warnedKqueue { if fs.WatchKqueue && !f.warnedKqueue {
summarySub = f.evLogger.Subscribe(events.FolderCompletion) summarySub = f.evLogger.Subscribe(events.FolderSummary)
summaryChan = summarySub.C() summaryChan = summarySub.C()
} }
defer func() { defer func() {