diff --git a/internal/linux/apps/runningApps.go b/internal/linux/apps/runningApps.go index dcaed22ed..0449a41ea 100644 --- a/internal/linux/apps/runningApps.go +++ b/internal/linux/apps/runningApps.go @@ -58,11 +58,11 @@ func (r *runningAppsSensor) update(l map[string]dbus.Variant, s chan sensor.Deta } } } - r.mu.Unlock() if r.count() != count { r.Value = count s <- r } + r.mu.Unlock() } func newRunningAppsSensor() *runningAppsSensor {