Fix issue with stale device lists

This commit is contained in:
Till Faelligen 2022-09-08 09:19:04 +02:00
parent d5876abbe9
commit 6b303ca527
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -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)
})