fix bug in activity timers

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2025-01-08 15:27:27 -08:00
parent 430c0afaa6
commit 359ff427e3

View file

@ -128,7 +128,7 @@ func stopActivityTimer(uid string) {
timerMutex.Lock() timerMutex.Lock()
defer timerMutex.Unlock() defer timerMutex.Unlock()
if _, ok := activityTimers[uid]; !ok { if _, ok := activityTimers[uid]; ok {
activityTimers[uid].Cancel() activityTimers[uid].Cancel()
delete(activityTimers, uid) delete(activityTimers, uid)
} }