summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-04-15 14:13:45 +0100
committerErik Johnston <erik@matrix.org>2021-04-15 14:13:45 +0100
commit68b9eb694f0896f11f0699a7e01bd7fb9210dba4 (patch)
tree3e05430849bf3bb4fb9bb4e7843da6a7ac63c7b5 /synapse/handlers/device.py
parentRemove the federation replication stream and associated commands (diff)
downloadsynapse-erikj/remove_send_queue.tar.xz
Tidy up hs.get_federation_sender() calls github/erikj/remove_send_queue erikj/remove_send_queue
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index d75edb184b..bac7f26a06 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -484,7 +484,7 @@ class DeviceHandler(DeviceWorkerHandler):
             "device_list_key", position, users=[user_id], rooms=room_ids
         )
 
-        if hosts:
+        if hosts and self.federation_sender:
             logger.info(
                 "Sending device list update notif for %r to: %r", user_id, hosts
             )