mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-18 11:33:10 -06:00
Fix issue with stale device lists
This commit is contained in:
parent
d5876abbe9
commit
6b303ca527
|
|
@ -167,6 +167,7 @@ func (u *DeviceListUpdater) Start() error {
|
|||
step = (time.Second * 120) / time.Duration(max)
|
||||
}
|
||||
for _, userID := range staleLists {
|
||||
userID := userID // otherwise we are only sending the last entry
|
||||
time.AfterFunc(offset, func() {
|
||||
u.notifyWorkers(userID)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue