mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 01:22:21 -04:00
Fix registering a device on an account with lots of devices (#15348)
Fixes up #15183
This commit is contained in:
parent
5350b5d04d
commit
f0d8f66eaa
4 changed files with 56 additions and 3 deletions
|
@ -946,6 +946,8 @@ class RegistrationHandler:
|
|||
if not device_ids:
|
||||
return
|
||||
|
||||
logger.info("Pruning %d stale devices for %s", len(device_ids), user_id)
|
||||
|
||||
# Now spawn a background loop that deletes said devices.
|
||||
async def _prune_too_many_devices_loop() -> None:
|
||||
if user_id in self._currently_pruning_devices_for_users:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue