mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-22 05:23:09 -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)
|
step = (time.Second * 120) / time.Duration(max)
|
||||||
}
|
}
|
||||||
for _, userID := range staleLists {
|
for _, userID := range staleLists {
|
||||||
|
userID := userID // otherwise we are only sending the last entry
|
||||||
time.AfterFunc(offset, func() {
|
time.AfterFunc(offset, func() {
|
||||||
u.notifyWorkers(userID)
|
u.notifyWorkers(userID)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue