Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Jan 2, 2025
1 parent a615e02 commit defd382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/presencedetection/presencedetection.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (d *detector) Detect(reason string) (bool, error) {
// DetectPresence checks if the user is present by detecting the presence of a user.
// It returns the duration since the last detection.
func (pd *PresenceDetector) DetectPresence(reason string, detectionInterval time.Duration) (time.Duration, error) {
// using try lock here because we don't don't want presence detections to queue up,
// using try lock here because we don't want presence detections to queue up,
// in the event that the users presses cancel, if the request were queued up, it would
// request the presence detection again
if !pd.mutex.TryLock() {
Expand Down

0 comments on commit defd382

Please sign in to comment.