Skip to content

Commit

Permalink
fix(linux): ⚡ improve lock handling for running apps sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Apr 22, 2024
1 parent 949bef5 commit ed50a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/linux/apps/runningApps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ed50a68

Please sign in to comment.