mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Fix oops
This commit is contained in:
parent
165af40bbf
commit
01f5ddd38f
|
|
@ -192,7 +192,7 @@ func (rp *RequestPool) updatePresenceInternal(db storage.Presence, presence stri
|
|||
|
||||
if checkAgain {
|
||||
// after a timeout, check presence again to make sure it gets set as offline sooner or later
|
||||
time.AfterFunc(time.Second*time.Duration(presenceTimeout), func() {
|
||||
time.AfterFunc(presenceTimeout, func() {
|
||||
rp.updatePresenceInternal(db, types.PresenceOffline.String(), userID, false)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue