fix bug in activity timers
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
430c0afaa6
commit
359ff427e3
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ func stopActivityTimer(uid string) {
|
|||
timerMutex.Lock()
|
||||
defer timerMutex.Unlock()
|
||||
|
||||
if _, ok := activityTimers[uid]; !ok {
|
||||
if _, ok := activityTimers[uid]; ok {
|
||||
activityTimers[uid].Cancel()
|
||||
delete(activityTimers, uid)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue